.lente-page {
    margin: 0;
    background: #080a11;
    color: #f2f4fa;
    color-scheme: dark;
    font: 1rem/1.6 system-ui, sans-serif;
}

.lente-shell {
    width: min(73rem, calc(100% - 2rem));
    margin-inline: auto;
}

.lente-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid #2d3342;
}

.lente-top a, .lente-back {
    color: #b4edff;
    text-underline-offset: .3em;
}

.lente-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
}

.lente-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}

.lente-top .lente-brand {
    display: block;
    width: clamp(8.5rem, 30vw, 12.5rem);
    max-width: 100%;
}

.lente-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.lente-heading {
    padding-block: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 4vw, 2.75rem);
}

.lente-heading h1 {
    margin: .1em 0 .2em;
    font: 400 clamp(2.55rem, 8vw, 5.25rem)/1.06 Georgia, serif;
    overflow-wrap: anywhere;
}

.lente-heading p { max-width: 42rem; margin: 0; color: #bfc7d7; }
.lente-back { display: inline-block; margin-bottom: .7rem; }

.lente-albums, .lente-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.8rem, 2vw, 1.4rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.lente-card, .lente-photos a {
    display: block;
    overflow: hidden;
    border: 1px solid #313949;
    border-radius: 1rem;
    background: #151a25;
    color: #f2f4fa;
    text-decoration: none;
}

.lente-card img, .lente-photos img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.lente-card span {
    display: block;
    padding: .75rem 1rem .85rem;
    font: 400 clamp(1.12rem, 2.4vw, 1.55rem)/1.25 Georgia, serif;
}

.lente-card:hover, .lente-photos a:hover { border-color: #8ce7ff; }
.lente-card:focus-visible, .lente-page :is(a, button):focus-visible {
    outline: 2px solid #8ce7ff;
    outline-offset: 3px;
}

.lente-preview-action {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

.lente-footer {
    margin-top: clamp(2.25rem, 6vw, 5rem);
    padding-block: 1.25rem;
    border-top: 1px solid #2d3342;
    color: #bfc7d7;
}

.lente-viewer {
    width: min(95vw, 90rem);
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
}

.lente-viewer::backdrop { background: rgba(5, 6, 10, .97); }
.lente-viewer-frame {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    gap: .65rem;
}

.lente-viewer img { display: block; max-width: 100%; max-height: 78vh; max-height: 78dvh; }
.lente-viewer button {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid #546072;
    border-radius: 50%;
    background: #1a2130;
    color: #fff;
    font: 1.75rem/1 system-ui, sans-serif;
    cursor: pointer;
}

.lente-close { grid-column: 1 / -1; justify-self: end; }
.lente-count { grid-column: 1 / -1; margin: 0; }
.lente-viewer button:hover { border-color: #8ce7ff; }

@media (max-width: 700px) {
    .lente-albums, .lente-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lente-viewer-frame { gap: .4rem; }
}

@media (max-width: 480px) {
    .lente-viewer img { grid-column: 1 / -1; grid-row: 2; }
    .lente-count { grid-column: 2; grid-row: 3; }
    .lente-previous { grid-column: 1; grid-row: 3; }
    .lente-next { grid-column: 3; grid-row: 3; }
}
