/* global.css – one file to rule them all */
body {
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}
a {
    color: #ff69b4;
}
.movie-title {
    font-size: 3rem;
    text-align: center;
    color: #fff;
}

/* global.css – one ring to rule them all */
body {
    background: #111;
    color: #eee;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    line-height: 1.6;
}

a {
    color: #ff69b4;
    text-decoration: none;
}

a:hover {
    color: #ff1493;
    text-decoration: underline;
}

h1, h2, h3 {
    color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Gallery & movie basics */
.movie-gallery, .star-gallery {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.cover-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.cover-front, .cover-back {
    width: 100%;
    transition: opacity 0.5s ease;
}

.cover-container:hover .cover-front { opacity: 0; }
.cover-container .cover-back { position: absolute; top: 0; left: 0; opacity: 0; }
.cover-container:hover .cover-back { opacity: 1; }

/* Stars grid */
.stars-grid a {
    display: inline-block;
    margin: 8px 15px 8px 0;
    padding: 8px 16px;
    background: #333;
    border-radius: 20px;
    transition: all 0.2s;
}

.stars-grid a:hover {
    background: #ff1493;
    transform: scale(1.05);
}

/* Add whatever else you want – buttons, cards, hover effects, mobile tweaks */
@media (max-width: 768px) {
    .cover-container, .movie-info {
        width: 100%;
        float: none;
    }
}

.thumbs-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.thumb {
    width: 120px;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.modal-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.prev-arrow, .next-arrow {
    color: white;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.big-button {
    display: block;
    margin: 30px auto;
    padding: 15px 40px;
    background: #ff1493;
    color: white;
    font-size: 1.5rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
}

.thumbs-slider {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.thumb {
    width: 140px;
    height: 210px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.thumb:hover {
    transform: scale(1.08);
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
}

.modal-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.prev-arrow, .next-arrow {
    color: white;
    font-size: 60px;
    cursor: pointer;
    padding: 30px;
    user-select: none;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

.big-button {
    display: block;
    margin: 40px auto;
    padding: 18px 50px;
    background: #ff1493;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 8px 20px rgba(255,20,147,0.4);
    transition: transform 0.2s;
}

.big-button:hover {
    transform: scale(1.05);
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.alphabet-grid a {
    text-align: center;
    padding: 20px;
    background: #222;
    border-radius: 8px;
    color: #ff69b4;
    font-size: 1.5rem;
    font-weight: bold;
}

.alphabet-grid .empty {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #666;
    border-radius: 8px;
}

.subindex-page .star-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.star-card-used-later {
    background: #222;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.star-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.star-card a {
    font-size: 1.2rem;
    color: #ff69b4;
}

.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a {
    padding: 10px 20px;
    background: #333;
    border-radius: 5px;
    margin: 0 10px;
    color: #ff69b4;
}

/* ==============================================
   INDEX PAGE – SEXY FEED STYLES (ANY SIZE PHOTO EDITION)
   ============================================== */

.index-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    text-align: center; /* centers the image */
}

.index-banner {
    max-width: 100%;   /* never overflow container */
    width: auto;       /* do NOT force stretch */
    height: auto;
    display: inline-block;
}

.index-feed {
    padding: 0 15px;
}
h1 {
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px #ff1493;
    margin: 30px 0 40px;
    text-align: center;
}
.star-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 0 10px;
}

/* Outer card – flex column, min height so text never vanishes */
.star-card {
    background: linear-gradient(145deg, #1a1a1a, #111);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    min-height: 480px;                   /* Ensures text has room even with short photo */
}

/* Hover lift */
.star-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255,20,147,0.3);
    border-color: #ff1493;
}

.star-card a {
    color: #eee;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Photo wrapper – auto height, caps max so tiles don’t explode */
.media-wrapper {
    width: 100%;
    height: auto;                       /* Grows with photo */
    max-height: 400px;                  /* ← MAX photo height – tune this for big photos */
    background: #111;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Photo – natural size, contained, top priority */
.profile-photo {
    width: 100%;
    height: auto;                       /* Uses natural height – no forced stretch */
    max-height: 400px;                  /* Matches wrapper max – prevents overflow */
    object-fit: contain;
    object-position: top center;        /* Head/face stays visible at top */
    background: #111;
    transition: transform 0.4s ease;
    display: block;
}

.star-card:hover .profile-photo {
    transform: scale(1.05);             /* Gentle zoom – no translate needed */
}

/* Box covers overlay */
.box-covers-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.box-cover-wrapper {
    width: 90px;
    height: 135px;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid #222;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    background: #111;
    transition: all 0.3s ease;
}
.box-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.star-card:hover .box-cover-wrapper.front {
    transform: translateX(-15px);
}
.star-card:hover .box-cover-wrapper.back {
    transform: translateX(-5px);
}

/* Text area – always fills remaining space */
.info {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    color: #eee;
}

.star-card h2 {
    font-size: 1.6rem;
    margin: 0 0 8px;
    color: #ff69b4;
}
.movie-info {
    font-size: 1.1rem;
    color: #ff1493;
    margin: 8px 0;
    font-style: italic;
}
.bio-teaser {
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.5;
    margin: 10px 0 12px;
    flex-grow: 1;
}
.updated {
    font-size: 0.85rem;
    color: #777;
    margin-top: auto;
}

/* Mobile – shrink photo max a bit */
@media (max-width: 768px) {
    .star-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    h1 {
        font-size: 2.2rem;
    }
    .media-wrapper {
        max-height: 320px;
    }
    .star-card {
        min-height: 460px;
    }
    .box-cover-wrapper {
        width: 70px;
        height: 105px;
    }
}
@media (max-width: 480px) {
    .media-wrapper {
        max-height: 280px;
    }
    .star-card {
        min-height: 440px;
    }
}


/* STAR DETAIL PAGE – CLEAN & SEXY LAYOUT */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.star-hero {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .star-hero {
        flex-direction: row;
        align-items: flex-start;
    }
}

.profile-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .profile-wrapper {
        max-width: 35%;  /* photo takes ~35% on desktop */
        margin: 0;
    }
}

.profile-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    background: #111;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: transform 0.4s ease;
}

.profile-wrapper:hover .profile-photo {
    transform: scale(1.03);
}

.no-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.5rem;
    border-radius: 1rem;
}

.star-details {
    flex: 1;
}

.star-name {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ff69b4;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid #333;
}

.stat-label {
    font-size: 0.875rem;
    color: #aaa;
    font-weight: 600;
}

.stat-value {
    font-size: 1.125rem;
    color: #ddd;
}

.bio-section {
    margin-top: 1rem;
}

.short-bio {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #ddd;
}

.expand-bio {
    color: #ff69b4;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
}

.expand-bio:hover {
    color: #ff1493;
}

.full-bio {
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #ddd;
}

.full-bio.hidden {
    display: none;
}

/* Gallery */
.gallery-section h2 {
    font-size: 2.25rem;
    color: #ff69b4;
    margin-bottom: 1.5rem;
}

.gallery-slider {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.gallery-img {
    width: 12rem;
    height: 18rem;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    scroll-snap-align: center;
}

.gallery-img:hover {
    transform: scale(1.08);
}

/* Movies */
.movies-section h2 {
    font-size: 2.25rem;
    color: #ff69b4;
    margin-bottom: 1.5rem;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.movie-card {
    background: #1a1a1a;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255,105,180,0.25);
}

.movie-cover-group {
    position: relative;
    height: 340px;
}

.movie-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.movie-cover.back {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.movie-card:hover .movie-cover.front {
    opacity: 0;
}

.movie-card:hover .movie-cover.back {
    opacity: 1;
}

.movie-info {
    padding: 1rem;
}

.movie-info h3 {
    font-size: 1.125rem;
    color: #ff69b4;
    margin-bottom: 0.25rem;
}

/* Mobile */
@media (max-width: 768px) {
    .star-name {
        font-size: 3rem;
    }
    .profile-wrapper {
        max-width: 100%;
    }
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}


.gallery-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.08);
}

/* Simple lightbox (add to bottom of CSS) */
/* LIGHTBOX FOR GALLERY THUMBS */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(255,105,180,0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: #ff1493;
    transform: scale(1.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 4rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lightbox-arrow:hover {
    background: #ff1493;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.left {
    left: 20px;
}

.lightbox-arrow.right {
    right: 20px;
}

/* MOVIE DETAIL HERO – PHOTO LEFT, DETAILS RIGHT */
.movie-hero {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .movie-hero {
        flex-direction: row;
        align-items: flex-start;
    }
}

.cover-column {
    width: 100%;
}

@media (min-width: 768px) {
    .cover-column {
        width: 40%; /* ← photo takes 40% on desktop – tune this */
        max-width: 450px;
    }
}

.cover-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}

.cover-container:hover {
    transform: scale(1.02);
}

.cover-front, .cover-back {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.cover-container .cover-back {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.cover-container:hover .cover-front {
    opacity: 0;
}

.cover-container:hover .cover-back {
    opacity: 1;
}

.details-column {
    flex: 1;
}

.movie-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ff69b4;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.attributes-grid div {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid #333;
}

.label {
    font-size: 0.875rem;
    color: #aaa;
    font-weight: 600;
    display: block;
}

.description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #ddd;
}

.stars-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.star-tile {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid #333;
    color: #ff69b4;
    font-weight: 600;
    transition: all 0.3s ease;
}

.star-tile:hover {
    background: #ff69b4;
    color: #1a1a1a;
    transform: translateY(-4px);
}

.scene-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #ff69b4 #1a1a1a;
}

.scene-thumb-wrapper {
    flex-shrink: 0;
    width: 8rem;           /* 128px — tune if you want smaller/bigger */
    height: 12rem;         /* 192px */
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scene-thumb-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(255,105,180,0.3);
}

.scene-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;    /* ← KEY: full photo visible, no crop */
    background: #111;
    image-rendering: crisp-edges; /* or -webkit-optimize-contrast for sharper scaling */
}

.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: #ff69b4 #1a1a1a;
}

.scrollbar-thin::-webkit-scrollbar {
    height: 8px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 4px;
}

/* LIGHTBOX – CLICK THUMB TO VIEW FULL */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(255,105,180,0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: #ff1493;
    transform: scale(1.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 4rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lightbox-arrow:hover {
    background: #ff1493;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.left {
    left: 20px;
}

.lightbox-arrow.right {
    right: 20px;
}

.footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: left;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.footer a:hover {
    color: #fff;
}

.footer h3 {
    color: #fff;
    font-weight: bold;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows wrapping for smaller screens */
}

.footer-column {
    flex: 1;
    margin-right: 20px;
    margin-bottom: 20px; /* Adds spacing between stacked columns */
}

.footer-bottom {
    margin-top: 20px;
    font-size: 12px;
    text-align: center; /* Centers the copyright notice on smaller screens */
}

/* MOVIE THEATER LINKS – tiled buttons */
.movie-links-section {
    text-align: center;
}

.movie-theater-btn {
    min-width: 140px;
    text-align: center;
}

.movie-theater-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,105,180,0.2);
}


/* SCENE GALLERY – THUMBS GRID + LIGHTBOX */

.thumbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* 5–6 cols on desktop, auto-adjusts */
    gap: 1rem;
    padding: 1rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.scene-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* auto-adjusts cols */
    gap: 1.25rem; /* nice spacing like old slider */
    padding: 1.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.thumb-wrapper {

}

.thumb-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(255,105,180,0.4);
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;       /* full image visible, letterbox if needed */
    background: #111;
    image-rendering: crisp-edges; /* sharper scaled-down look */
}

.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills nicely, slight crop if needed */
    display: block;
    transition: transform 0.4s ease;
}

.thumb-wrapper:hover img {
    transform: scale(1.08);
}

.thumb {

}

.scene-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
}

/* Lightbox / modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
}

.modal-content-wrapper {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
}

.modal-main-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 0 40px rgba(255,105,180,0.3);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 3.5rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #ff1493;
    transform: scale(1.1);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: #ff1493;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

.modal-caption, .modal-counter {
    color: #ddd;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.2rem;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .thumbs-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

.howto-title{
    text-align:center;
    margin: 24px 0 16px;
}

.movie-links{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;  /* centers the group */
    gap:12px;
}

.movie-links a{
    display:inline-block;
    min-width: 160px;        /* makes them tile-like */
    text-align:center;
}

.scene-gallery h2.howto-title{
    text-align: center !important;
    width: 100%;
    display: block;
}


