/* ============================================
   S. Sivasubramanian — Work Samples Portfolio
   ============================================ */

/* --- Base --- */
body {
    background-color: #f3e8ea;
    color: #0f172a;
    scroll-behavior: smooth;
}

/* --- Card Grid --- */
.thumb-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(127,29,29,.3);
    background: #ffffff;
}
.thumb-card:hover {
    transform: translateY(-4px);
    border-color: #7f1d1d;
    box-shadow: 0 10px 30px -5px rgba(127,29,29,.15);
}

/* --- Modal --- */
.modal-overlay {
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    transform: scale(0.98);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* --- Embed Container (layout only — no iframe sizing here) --- */
.embed-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

.iframe-hidden { display: none; }
.iframe-active { display: block; }

/* --- Arrows --- */
.ig-arrow {
    transition: all 0.15s ease;
}
.ig-arrow:hover {
    font-weight: 900;
}

/* --- Gallery Carousel (all screen sizes) --- */
.gallery-carousel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #0f172a;
    overflow: hidden;
}
.gallery-carousel .gallery-slides {
    flex: 1;
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.gallery-carousel .gallery-slide-area {
    flex: 1;
    position: relative;
}
.gallery-carousel .gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    cursor: pointer;
    touch-action: pan-y;
}
.gallery-carousel .gallery-slide.hidden { display: none; }
.gallery-carousel .gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -4px rgba(0,0,0,.3);
}
.gallery-carousel .gallery-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    padding: 8px 12px;
}
.gallery-carousel .gallery-label {
    font-family: 'EB Garamond', serif;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    letter-spacing: 0.05em;
}
.gallery-carousel .gallery-counter {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    letter-spacing: 0.1em;
}

/* --- Red Scrollbar --- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f3e8ea; }
::-webkit-scrollbar-thumb { background: rgba(127,29,29,.25); border-radius: 4px; }
html { scrollbar-color: rgba(127,29,29,.25) #f3e8ea; }

/* --- Gallery swipe animation --- */
.gallery-slide-area {
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}
.gallery-slide-area.swiping {
    transition: none;
}

