/* =================================== */
/* ========== New Gallery Styles ========== */
/* =================================== */

.new-gallery-section {
    padding: 50px 0;
    background-color: var(--gray);
}

/* Gallery Grid */
.new-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-event-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.gallery-event-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    cursor: pointer;
}

.gallery-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-event-info {
    padding: 20px;
    text-align: center;
}

.gallery-event-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.gallery-event-info p {
    font-size: 14px;
    color: #6c757d;
}

.gallery-event-caption {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-top: 10px;
}

/* Styles for In-Card Slider */
.card-internal-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-internal-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.card-internal-slider .slide.active {
    opacity: 1;
}

.card-internal-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 16px;
    z-index: 10;
    transition: background-color 0.3s;
    border-radius: 4px;
}

.card-internal-slider .slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.card-internal-slider .slider-btn.prev {
    left: 10px;
}

.card-internal-slider .slider-btn.next {
    right: 10px;
}
/* =================================== */
/* ========== Custom Lightbox Styles ========== */
/* =================================== */

.lightbox-container {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 16px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.lightbox-prev { left: 0; border-radius: 3px 0 0 3px; }
.lightbox-next { right: 0; }
.lightbox-prev:hover, .lightbox-next:hover { background-color: rgba(255,255,255,0.2); }