h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: "Apple Chancery", cursive, "Times New Roman", serif;
}

body {
    background-color: beige;
}

.nav {
    margin-bottom: 20px;
}

h1 a,
h1 a:visited {
    color: blue;
    text-decoration: none;
}

h1 a:hover {
    color: red;
}

.nav a,
.nav a:visited {
    padding: 5px 10px;
    margin-right: 10px;
    text-decoration: none;
    background-color: blue;
    color: white;
}

.nav a:hover {
    background-color: red;
}

.filters {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    font-family: 'Times New Roman', Times, serif;
    background-color: chartreuse;
    padding: 5px 10px;
    color: #000;
}

.filter-btn.active {
    opacity: 0.5;
}

#addReviewBtn {
    margin-bottom: 10px;
    background-color: #E3E3E3;
    border: 1px solid #000;
    color: #000;
}

#reviewForm {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group label {
    font-family: 'Times New Roman', Times, serif;
    font-weight: normal;
}

#reviewForm input,
#reviewForm textarea {
    font-family: 'Times New Roman', Times, serif;
    background-color: white;
    border: 1px solid #000;
}

#reviewForm input[type="file"] {
    background-color: transparent;
    border: none;
}

#reviewForm input[type="file"]::file-selector-button {
    background-color: #E3E3E3;
    border: 1px solid #000;
    font-family: 'Times New Roman', Times, serif;
    color: #000;
}

#reviewForm input[type="file"]::-webkit-file-upload-button {
    background-color: #E3E3E3;
    border: 1px solid #000;
    font-family: 'Times New Roman', Times, serif;
    color: #000;
}

#reviewTextInput {
    width: 320px;
}

#reviewForm button {
    font-family: 'Times New Roman', Times, serif;
    background-color: #E3E3E3;
    border: 1px solid #000;
    color: #000;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.review-item {
    display: flex;
    flex-direction: column;
    border-style: dashed;
    padding: 5px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.review-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.review-category {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
    border-style: solid;
    border-color: gray;
    border-width: 1px;
    color: gray;
    padding: 2px;
}

.review-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
    visibility: visible;
}

.review-rating {
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 10px;
}

.review-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    margin-bottom: 10px;
}

.review-date {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
}

.review-delete {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

/* Full-screen image lightbox (shared) */
#imageLightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#imageLightbox.active {
    display: flex;
}

#imageLightbox .lightbox-backdrop {
    position: absolute;
    inset: 0;
}

#imageLightbox .lightbox-content {
    position: relative;
    max-width: 50vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#imageLightbox .lightbox-img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

#imageLightbox .lightbox-caption {
    margin-top: 10px;
    color: #fff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 13px;
    text-align: center;
}

#imageLightbox .lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

#imageLightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0 10px;
}

#imageLightbox .lightbox-prev {
    left: 15px;
}

#imageLightbox .lightbox-next {
    right: 15px;
}

/* Mobile responsive - single column */
@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }

    #imageLightbox .lightbox-content {
        max-width: 100vw;
    }
}
