/* =========================
   MODALS (EXPERIENCES)
========================= */
.exp-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 4000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #1f2937;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: #ef4444;
}

.modal-content-scroll {
    overflow-y: auto;
    padding: 30px;
    padding-top: 40px;
}

.modal-content-scroll::-webkit-scrollbar {
    width: 8px;
}
.modal-content-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.modal-hero-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
}

.modal-title {
    font-size: 28px;
    color: #1f2937;
    margin: 10px 0;
}

.modal-body-text {
    color: #374151;
    font-size: 16px;
    line-height: 1.8;
}

.modal-body-text p {
    margin-bottom: 15px;
}

/* =========================
   CAROUSEL
========================= */
.carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    height: 450px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        height: 300px;
    }
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img, .carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn-left {
    left: 15px;
}

.carousel-btn-right {
    right: 15px;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    border: none;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-indicator.active-indicator {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* =========================
   LIGHTBOX
========================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 5010;
    transition: color 0.3s ease;
}

.lightbox-close-btn:hover {
    color: #ef4444;
}

.lightbox-content img, .lightbox-content video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

.expandable-media {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.expandable-media:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}
