:root {
    --primary: #005588;
    --accent: #00ff88;
    --text: #e0e0e0;
    --caption-bg: rgba(35,35,45,0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: var(--text);
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
}

.hero {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: brightness(0.82) contrast(1.08);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, #000);
}

.page-header {
    text-align: center;
    padding: 90px 20px 60px;
    background: #000;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 6.5rem;
    color: #fff;
    letter-spacing: 8px;
}

.page-header .subtitle {
    color: var(--accent);
    font-size: 1.8rem;
    letter-spacing: 5px;
    margin: 15px 0;
}

.page-header .count {
    color: #aaa;
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin: 20px 0;
}

.back-btn {
    display: inline-block;
    padding: 16px 50px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    transition: .4s;
}

.back-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 30px rgba(0,85,136,0.6);
}

.grid {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 34px;
    max-width: 1900px;
    margin: auto;
}

.item {
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 25px 60px #000c;
    transition: .7s;
}

.item:hover {
    transform: translateY(-18px) scale(1.025);
}

.item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: .9s;
}

.item:hover img {
    transform: scale(1.1);
}

.num, .like-indicator {
    position: absolute;
    top: 20px;
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: 600;
    z-index: 2;
}

.num {
    left: 20px;
    background: rgba(0,85,136,0.9);
    color: #fff;
}

.like-indicator {
    right: 20px;
    background: var(--accent);
    color: #000;
    animation: pop 0.4s ease;
}

@keyframes pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.pagination {
    text-align: center;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination a {
    min-width: 52px;
    height: 52px;
    background: transparent;
    color: #888;
    border: 1px solid #333;
    border-radius: 50%;
    text-decoration: none;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.pagination a:hover, .pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

#modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: .6s;
}

#modal.on {
    opacity: 1;
    visibility: visible;
}

#modal img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 40px 120px #000f;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--caption-bg);
    padding: 26px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,255,136,0.25);
    transform: translateY(100%);
    transition: transform .5s;
}

#modal.on .caption {
    transform: translateY(0);
}

.caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.7rem;
    color: var(--accent);
    font-weight: 400;
}

.celeb-line {
    font-size: 1.4rem;
    color: #fff;
    margin: 14px 0;
}

.celeb-line a {
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: .3s;
}

.celeb-line a:hover {
    border-bottom: 2px solid var(--accent);
}

.like-btn {
    color: #bbb;
    font-size: 2rem;
    cursor: pointer;
    transition: all .3s;
}

.like-btn.liked {
    color: #e74c3c;
    transform: scale(1.2);
}

.like-btn:hover {
    transform: scale(1.15);
}

.buy-btn {
    margin-left: 20px;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    transition: .3s;
    font-weight: 600;
}

.buy-btn:hover {
    background: var(--accent);
    color: #000;
}

.close, .nav {
    position: absolute;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: .3s;
    font-size: 90px;
}

.close:hover, .nav:hover {
    opacity: 1;
    transform: scale(1.15);
}

.close {
    top: 40px;
    right: 50px;
}

.nav {
    top: 50%;
    transform: translateY(-50%);
}

.prev {
    left: 40px;
}

.next {
    right: 40px;
}

.copyright {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 4.5rem;
    }
    .caption {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    .close, .nav {
        font-size: 60px;
    }
}