.event-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.event-detail-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.event-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--turquoise);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: opacity 0.2s;
}

.event-back-btn:hover { opacity: 0.75; }

.event-detail-title {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.event-detail-date {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.event-detail-description {
    color: var(--dark-gray);
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.event-no-photos {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--dark-gray);
    opacity: 0.5;
}

.event-no-photos i { font-size: 3rem; margin-bottom: 1rem; display: block; }

.product-gallery { width: 100%; margin: 30px auto; position: relative; }
.slider-container { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; }
.slider { display: flex; transition: transform 0.5s ease; }
.slide { min-width: 100%; position: relative; text-align: center; }

.main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s;
}

.main-image:hover { transform: scale(1.01); }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.slider-btn:hover { background: rgba(0, 0, 0, 0.7); }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.thumbnail-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, transform 0.3s;
}

.thumbnail.active { border-color: var(--turquoise); }
.thumbnail:hover { transform: scale(1.05); }
.thumbnail-img { width: 100%; height: 100%; object-fit: cover; }

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal.active { display: flex; animation: fadeIn 0.3s ease-out; }

.modal-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.modal-image { max-width: 100%; max-height: 90vh; object-fit: contain; animation: fadeIn 0.5s ease-out; }

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.modal-nav-btn:hover { background: rgba(255, 255, 255, 0.4); }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .event-detail-title { font-size: 1.5rem; }
    .slider-container { max-width: 100%; }
    .main-image { max-height: 400px; }
    .thumbnail { width: 60px; height: 60px; }
    .thumbnail-container { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; scrollbar-width: thin; }
}

@media (max-width: 480px) {
    .main-image { max-height: 300px; }
    .thumbnail { width: 50px; height: 50px; }
}
