:root {
    --tg-ink: #2C2C2C;
    --tg-dark: #5AB5E8;
    --tg-border: #E6EAF0;
    --shadow-sm: 0 8px 22px rgba(16,24,40,.06);
    --shadow-md: 0 16px 44px rgba(16,24,40,.10);
    --container: 1200px;
}

body {
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9fafb;
}

.container {
    max-width: var(--container);
    margin: auto;
    padding: 0 20px;
}

/* Sub-hero */
.subhero {
    position: relative;
    padding: 64px 0 80px;
}
.subhero-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.subhero-media {
    position: relative;
    height: 360px;
    background: #dbeafe;
}
.subhero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,14,28,.55) 0%, rgba(10,14,28,.15) 60%, rgba(10,14,28,0) 100%);
}
.subhero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.subhero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}
.subhero-box {
    max-width: 820px;
    color: #fff;
    padding: 0 48px;
}
.crumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    opacity: .9;
}
.crumbs a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.subhero h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4.2vw, 44px);
    font-weight: 800;
}
.subhero p {
    margin: 0;
    color: #E6F0F8;
}

/* Sections */
.section {
    padding: 56px 0;
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.section-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}
.section-sub {
    color: #475467;
}

/* Filters */
.filters {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}
@media(min-width:1000px) {
    .filters {
        grid-template-columns: 1fr 1fr 1fr auto;
    }
}
.field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--tg-border);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
}
.field input,
.field select {
    border: 0;
    outline: 0;
    width: 100%;
    font: inherit;
}

/* Grid & Cards */
.grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}
@media(min-width:760px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(min-width:1100px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Album card */
.album-card {
    background: #fff;
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.album-card .thumb {
    position: relative;
    aspect-ratio: 4/3;
    background: #000;
    overflow: hidden;
}
.album-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.album-card .thumb:hover img {
    transform: scale(1.05);
}
.album-card .thumb .badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(255,255,255,.92);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
}
.album-card .thumb .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.album-card .thumb:hover .overlay {
    opacity: 1;
}
.album-card .thumb .overlay .btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
}
.album-card .body {
    padding: 14px;
}
.album-card .body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}
.album-card .body .meta {
    color: #667085;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Lightbox */
dialog.viewer {
    border: 0;
    padding: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    max-width: min(1100px, 92vw);
    width: 100%;
}
dialog::backdrop {
    background: rgba(15,23,42,.5);
}
.viewer .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
}
.viewer .title {
    font-weight: 800;
}
.viewer .close {
    border: 0;
    background: #fff;
    border: 1px solid var(--tg-border);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
}
.viewer .frame {
    position: relative;
    background: #000;
}
.viewer .frame .stage {
    position: relative;
    aspect-ratio: 16/10;
}
.viewer .frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.viewer .tools {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
}
.viewer .tools .btn {
    border: 1px solid var(--tg-border);
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}
