/* Single Event Detail Page Styles */
.single-event-container {
    /* background: white; */
    /* border-radius: 12px; */
    margin: 1rem 0;
    overflow: hidden;
}

.event-header {
    position: relative;
    padding: 0 0 2rem;
    /* text-align: center; */
}

.event-cover {
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.event-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-header h1 {
    margin: 1rem 0;
    font-size: 2.5rem;
    color: #333;
    font-family: 'Cormorant Garamond', serif;
}

.event-highlight {
    /* color: #E77C40; */
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
    font-weight: 400;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 2rem;
    /* padding: 0 1rem; */
    margin-top: 1.5rem;
}

.event-venue, .event-organizer, .event-date-info {
    display: flex;
    align-items: start;
    color: #666;
    font-size: 1rem;
}

.event-venue i, .event-organizer i, .event-date-info i {
    color: #E77C40;
    margin-right: 8px;
    font-size: 1.1rem;
}

.event-content {
    /* padding: 3rem 2rem;s */
    border-top: 1px solid #eee;
}

.event-content:first-of-type {
    border-top: none;
}

.section-header {
    text-align: start;
    margin-bottom: 2rem;
}

.section-tag {
    background: linear-gradient(180deg, #ED8A29 0%, #C32D2E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* For Firefox */
    color: #ED8A29; /* fallback */
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
    position: relative;
    padding-left: 30px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 20px;
  background: linear-gradient(180deg, #ED8A29 0%, #C32D2E 100%);
  -webkit-text-fill-color: transparent;
  background-color: #ED8A29;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.2;
}

.event-description {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .event-description {
        flex-direction: row;
        align-items: flex-start;
    }
}

.description-image {
    flex: 0 0 100%;
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .description-image {
        flex: 0 0 45%;
    }
}

.description-image img {
    width: 100%;
    height: auto;
    display: block;
}

.description-text {
    flex: 1;
    line-height: 1.6;
    color: #444;
    font-size: 1rem;
}

.description-text p {
    margin: 0;
}

.photos-grid, .videos-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .photos-grid, .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .photos-grid, .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.photo-item, .video-item {
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.video-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-wrapper:hover .video-overlay {
    opacity: 0;
}

.play-button {
    width: 60px;
    height: 60px;
    background: #E77C40;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.photo-caption, .video-caption {
    padding: 1rem;
    background: white;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    border-top: 1px solid #eee;
}

.back-button-container {
    text-align: center;
    margin: 3rem 0;
    padding: 0 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: #E77C40;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.back-button i {
    margin-right: 8px;
}

.back-button:hover {
    background-color: #d35f20;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-content video {
    outline: none;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    background: rgba(0, 0, 0, 0.8);
    text-decoration: none;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1f1f1;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    text-align: center;
    max-width: 80%;
}

/* Navigation arrows for modal */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Add cursor pointer to clickable items */
.photo-item img,
.video-wrapper {
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .event-header h1 {
        font-size: 1rem;
    }
    
    .event-meta {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .photos-grid, .videos-grid {
        gap: 1rem;
    }
    
    .photo-item img, .video-wrapper {
        height: 200px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-nav {
        font-size: 20px;
        padding: 10px 15px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-caption {
        bottom: 10px;
        font-size: 14px;
        max-width: 90%;
        padding: 8px 15px;
    }
}