/* Galleries: the list (temp/galleries.php) and one gallery (temp/gallery.php) - cover, photo grid, lightbox and buy panel */
:root {
    --gal-ink: #222;
    --gal-muted: #8a8a8a;
    --gal-line: #e6e6e6;
    --gal-soft: #f3f3f3;
    --gal-accent: #fad100;
    --gal-fav: #e0465a;
    --gal-error: #b3261e;
    --gal-gap: 6px;
    --gal-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
    :root {
        --gal-gap: 12px;
    }
}

/* ---------- Gallery list ---------- */
.gal-list {
    max-width: 1200px; /* the site's container */
    margin: 0 auto;
    padding: 48px 15px 120px;
}

.gal-list__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
    margin-bottom: 36px;
}

.gal-list__title {
    margin: 0;
    font-family: Poppins-Light;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.15;
    color: var(--gal-ink);
}

.gal-list__sub {
    margin-top: 10px;
    font-family: Poppins-Regular;
    font-size: 15px;
    color: #666;
}

.gal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 40px 28px;
}

.gal-card {
    display: block;
    color: inherit;
}

.gal-card:focus-visible {
    outline: 2px solid var(--gal-ink);
    outline-offset: 4px;
}

.gal-card__media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--gal-soft);
}

.gal-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--gal-ease);
}

.gal-card:hover .gal-card__media img {
    transform: scale(1.04);
}

.gal-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #c8c8c8;
}

.gal-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, .94);
    font-family: Poppins-Medium;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gal-ink);
}

.gal-card__body {
    padding-top: 16px;
}

.gal-card__title {
    margin: 0 0 6px;
    font-family: Poppins-Medium;
    font-size: 18px;
    line-height: 1.35;
    color: var(--gal-ink);
    transition: color .2s;
}

.gal-card:hover .gal-card__title {
    color: #000;
}

.gal-card__meta {
    font-family: Poppins-Regular;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gal-muted);
}

.gal-list__empty {
    padding: 60px 0;
    font-family: Poppins-Regular;
    font-size: 15px;
    color: var(--gal-muted);
}

/* ---------- Gallery list: search ---------- */
.gal-search {
    position: relative;
    flex: 0 1 360px;
}

.gal-search__icon {
    position: absolute;
    top: 50%;
    left: 17px;
    font-size: 14px;
    color: var(--gal-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.gal-search__input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 46px 0 44px;
    border: 1px solid var(--gal-line);
    border-radius: 0;
    background: #fff;
    font-family: Poppins-Regular;
    font-size: 15px;
    color: var(--gal-ink);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s;
}

.gal-search__input::placeholder {
    color: #999;
}

.gal-search__input:focus {
    border-color: var(--gal-ink);
    outline: none;
}

.gal-search__input::-webkit-search-cancel-button,
.gal-search__input::-webkit-search-decoration {
    -webkit-appearance: none;
    display: none;
}

.gal-search__clear {
    position: absolute;
    top: 50%;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--gal-muted);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .2s, color .2s;
}

.gal-search__clear:hover,
.gal-search__clear:focus-visible {
    background: var(--gal-soft);
    color: var(--gal-ink);
}

.gal-search__clear[hidden],
.gal-card[hidden],
.gal-list__none[hidden] {
    display: none;
}

.gal-list__status {
    margin: -16px 0 24px;
    font-family: Poppins-Regular;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gal-muted);
}

.gal-list__status:empty {
    display: none;
}

.gal-list__none {
    padding: 56px 0;
    text-align: center;
    font-family: Poppins-Regular;
    font-size: 15px;
    color: #666;
}

.gal-list__none p {
    margin-bottom: 20px;
}

.gal-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    .gal-search {
        flex-basis: 100%;
    }

    .gal-search__input {
        font-size: 16px; /* iOS zooms into a field under 16px */
    }
}

/* ---------- Cover ---------- */
.gal-cover {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: clamp(420px, 72vh, 860px);
    overflow: hidden;
    background: #1e1e1e;
    text-align: center;
    color: #fff;
}

.gal-cover--plain {
    min-height: clamp(300px, 46vh, 480px);
}

.gal-cover__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gal-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .36) 55%, rgba(0, 0, 0, .62) 100%);
}

.gal-cover__inner {
    width: 100%;
    max-width: 920px;
    padding: 64px 20px;
}

.gal-cover__eyebrow {
    margin: 0 0 18px;
    font-family: Poppins-Medium;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
}

.gal-cover__title {
    margin: 0;
    font-family: Poppins-Light;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.1;
    color: #fff;
    text-wrap: balance;
}

.gal-cover__meta {
    margin: 18px 0 0;
    font-family: Poppins-Regular;
    font-size: 13px;
    line-height: 1;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
}

.gal-cover__date {
    margin: 16px 0 0;
    font-family: Poppins-Regular;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .9);
}

/* a gallery past its last day: a calm notice instead of the photos */
.gal-expired {
    max-width: 460px;
    margin: 32px auto 0;
    padding: 22px 24px;
    background: rgba(255, 255, 255, .94);
    color: var(--gal-ink);
}

.gal-expired__title {
    margin: 0 0 8px;
    font-family: Poppins-Medium;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gal-ink);
}

.gal-expired__text {
    margin: 0;
    font-family: Poppins-Regular;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.gal-expired__text a {
    color: var(--gal-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gal-cover__btn {
    display: inline-block;
    margin-top: 32px;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, .9);
    font-family: Poppins-Medium;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #fff;
    transition: background-color .25s, color .25s;
}

.gal-cover__btn:hover,
.gal-cover__btn:focus-visible {
    background: #fff;
    color: var(--gal-ink);
}

/* the code form sits on the cover */
.gal-lock {
    margin-top: 34px;
}

.gal-lock__label {
    display: block;
    margin-bottom: 14px;
    font-family: Poppins-Regular;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .92);
}

.gal-lock__label .fa {
    margin-right: 6px;
}

.gal-lock__row {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
}

.gal-lock__input {
    flex: 1;
    min-width: 0;
    height: 54px;
    padding: 0 18px;
    border: 0;
    font-family: Poppins-Regular;
    font-size: 16px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gal-ink);
}

.gal-lock__input::placeholder {
    letter-spacing: .02em;
    text-transform: none;
    color: #999;
}

.gal-lock__btn {
    padding: 0 24px;
    background: var(--gal-accent);
    font-family: Poppins-Medium;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gal-ink);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.gal-lock__btn:hover {
    background: var(--gal-ink);
    color: #fff;
}

.gal-lock__error {
    display: inline-block;
    margin: 16px 0 0;
    padding: 8px 14px;
    background: rgba(200, 30, 30, .85);
    font-family: Poppins-Regular;
    font-size: 14px;
    color: #fff;
}

/* ---------- Bar under the cover ---------- */
.gal-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--gal-line);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    scroll-margin-top: 80px;
}

.gal-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 12px 16px;
}

.gal-bar__info {
    min-width: 0;
}

.gal-bar__title {
    margin: 0;
    overflow: hidden;
    font-family: Poppins-Medium;
    font-size: 16px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--gal-ink);
}

.gal-bar__meta {
    display: block;
    margin-top: 3px;
    font-family: Poppins-Regular;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gal-muted);
}

.gal-bar__until {
    color: var(--gal-ink);
}

.gal-bar__until::before {
    content: ' · ';
    color: var(--gal-muted);
}

@media (max-width: 575px) {
    /* next to four icon buttons: one line each, cut with "…" */
    .gal-bar__meta {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .gal-bar__until {
        display: block;
        margin-top: 2px;
    }
    .gal-bar__until::before {
        content: none;
    }
}

.gal-bar__actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.gal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--gal-ink);
    background: var(--gal-ink);
    font-family: Poppins-Medium;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.gal-btn:hover,
.gal-btn:focus-visible {
    border-color: #000;
    background: #000;
    color: #fff;
}

.gal-btn--ghost {
    border-color: var(--gal-line);
    background: transparent;
    color: var(--gal-ink);
}

.gal-btn--ghost:hover,
.gal-btn--ghost:focus-visible {
    border-color: var(--gal-ink);
    background: transparent;
    color: var(--gal-ink);
}

.gal-btn[disabled] {
    opacity: .4;
    cursor: default;
}

/* the whole gallery for sale: the bar's yellow button */
.gal-btn--accent {
    border-color: var(--gal-accent);
    background: var(--gal-accent);
    color: var(--gal-ink);
}

.gal-btn--accent:hover,
.gal-btn--accent:focus-visible {
    border-color: var(--gal-ink);
    background: var(--gal-ink);
    color: #fff;
}

.gal-btn__price {
    letter-spacing: .04em;
    text-transform: none;
}

.gal-btn__caret {
    margin-left: -2px;
    font-size: 13px;
}

@media (max-width: 575px) {
    .gal-btn__caret {
        display: none;
    }
}

/* ---------- Download size menu (under the download buttons, also in the lightbox) ---------- */
.gal-pop {
    position: fixed;
    z-index: 1070; /* above the lightbox (1043) and the buy panel (1045) */
    width: 260px;
    max-width: calc(100vw - 16px);
    padding: 8px;
    border: 1px solid var(--gal-line);
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .16);
    text-align: left;
}

.gal-pop[hidden] {
    display: none;
}

.gal-pop__title {
    margin: 0;
    padding: 6px 10px 8px;
    font-family: Poppins-Medium;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gal-muted);
}

.gal-pop__item {
    display: block;
    padding: 10px;
    color: var(--gal-ink);
    transition: background-color .15s;
}

.gal-pop__item:hover,
.gal-pop__item:focus-visible {
    background: var(--gal-soft);
    color: var(--gal-ink);
    outline: none;
}

.gal-pop__name {
    display: block;
    font-family: Poppins-Medium;
    font-size: 14px;
    line-height: 1.35;
}

.gal-pop__hint {
    display: block;
    margin-top: 2px;
    font-family: Poppins-Regular;
    font-size: 12px;
    line-height: 1.4;
    color: var(--gal-muted);
}

/* favourites: the count stays on phones, where the label is hidden */
.gal-btn--fav .fa-heart {
    color: var(--gal-fav);
}

.gal-btn--fav.is-active,
.gal-btn--fav.is-active:hover,
.gal-btn--fav.is-active:focus-visible {
    border-color: var(--gal-ink);
    background: var(--gal-ink);
    color: #fff;
}

.gal-btn__count[hidden] {
    display: none;
}

@media (min-width: 576px) {
    .gal-btn__count::before {
        content: '(';
    }
    .gal-btn__count::after {
        content: ')';
    }
}

@media (max-width: 575px) {
    .gal-btn {
        padding: 0 13px;
    }
    .gal-btn__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (min-width: 768px) {
    .gal-bar__inner {
        padding: 16px 32px;
    }
}

.gal-intro {
    max-width: 720px;
    margin: 40px auto 0;
    padding: 0 16px;
    font-family: Poppins-Regular;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    color: #555;
}

.gal-intro p {
    margin: 0 0 .8em;
    font: inherit;
    color: inherit;
}

/* ---------- Photo grid ---------- */
.gal-wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px var(--gal-gap) 120px;
}

@media (min-width: 768px) {
    .gal-wrap {
        padding: 40px 32px 140px;
    }
}

/* without JS: a plain grid; gallery.js turns it into masonry columns */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gal-gap);
}

@media (min-width: 900px) {
    .gal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gal-grid.is-masonry {
    display: flex;
    align-items: flex-start;
}

.gal-col {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: var(--gal-gap);
    min-width: 0;
}

.gal-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--gal-soft);
}

.gal-item__open {
    display: block;
    cursor: zoom-in;
}

.gal-item__open img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto 3 / 2;
    transition: transform .6s var(--gal-ease), opacity .3s;
}

.gal-item:hover .gal-item__open img {
    transform: scale(1.025);
}

.gal-item__bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 30px 10px 10px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.gal-item:hover .gal-item__bar,
.gal-item:focus-within .gal-item__bar {
    opacity: 1;
}

.gal-item__name {
    overflow: hidden;
    font-family: Poppins-Regular;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: .03em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gal-item__actions {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
    pointer-events: auto;
}

.gal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    font-size: 15px;
    color: var(--gal-ink);
    cursor: pointer;
    transition: transform .2s, background-color .2s;
}

.gal-icon:hover,
.gal-icon:focus-visible {
    background: #fff;
    color: var(--gal-ink);
    transform: scale(1.08);
}

.gal-icon--buy {
    background: var(--gal-accent);
}

.gal-icon--buy:hover,
.gal-icon--buy:focus-visible {
    background: var(--gal-accent);
}

.gal-icon--fav.is-fav,
.gal-icon--fav.is-fav:hover,
.gal-icon--fav.is-fav:focus-visible {
    color: var(--gal-fav);
}

/* a favourite keeps a small heart in its corner while its buttons are hidden */
.gal-item.is-fav::after {
    content: '\f004';
    position: absolute;
    top: 10px;
    right: 10px;
    font: normal normal normal 15px/1 FontAwesome;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    pointer-events: none;
    transition: opacity .25s;
}

.gal-item.is-fav:hover::after,
.gal-item.is-fav:focus-within::after {
    opacity: 0;
}

/* touch screens have no hover: the buttons stay visible, without the name and the shade */
@media (hover: none) {
    .gal-item__bar {
        justify-content: flex-end;
        padding: 8px;
        background: none;
        opacity: 1;
    }
    .gal-item__name {
        display: none;
    }
    .gal-icon {
        width: 34px;
        height: 34px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
    }
    .gal-item:hover .gal-item__open img {
        transform: none;
    }
    .gal-item.is-fav::after {
        display: none;
    }
}

.gal-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 40px;
    font-family: Poppins-Regular;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gal-muted);
}

.gal-more[hidden] {
    display: none;
}

.gal-more__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gal-line);
    border-top-color: var(--gal-ink);
    border-radius: 50%;
    animation: gal-spin .8s linear infinite;
}

@keyframes gal-spin {
    to {
        transform: rotate(360deg);
    }
}

.gal-empty {
    padding: 80px 0;
    font-family: Poppins-Regular;
    font-size: 15px;
    text-align: center;
    color: var(--gal-muted);
}

/* ---------- Favourites view (the bar's "Obľúbené" button) ---------- */
.gal-wrap.is-favs > [data-gal-grid],
.gal-wrap.is-favs > [data-gal-more],
.gal-wrap.is-favs > [data-gal-find-none] {
    display: none;
}

.gal-favs[hidden] {
    display: none;
}

.gal-favs__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 28px;
}

.gal-favs__info {
    min-width: 0;
}

.gal-favs__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0;
    font-family: Poppins-Medium;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gal-muted);
    cursor: pointer;
    transition: color .2s;
}

.gal-favs__back:hover,
.gal-favs__back:focus-visible {
    color: var(--gal-ink);
}

.gal-favs__back .fa {
    font-size: 15px;
}

.gal-favs__title {
    margin: 0;
    font-family: Poppins-Light;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
    color: var(--gal-ink);
    outline: none;
}

.gal-favs__meta {
    min-height: 1.3em;
    margin: 8px 0 0;
    font-family: Poppins-Regular;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gal-muted);
}

.gal-favs__empty {
    padding: 60px 0;
    font-family: Poppins-Regular;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    color: var(--gal-muted);
}

.gal-favs__empty[hidden] {
    display: none;
}

.gal-favs__empty .fa {
    color: var(--gal-fav);
}

@media (max-width: 575px) {
    .gal-favs__send {
        justify-content: center;
        width: 100%;
    }
}

/* columns made by js/gallery.js, as in the grid */
.gal-favgrid {
    display: flex;
    align-items: flex-start;
    gap: var(--gal-gap);
}

/* ---------- Small notice at the bottom ("Odkaz skopírovaný") ---------- */
.gal-toast {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: 50%;
    z-index: 1060;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    background: var(--gal-ink);
    font-family: Poppins-Regular;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: .02em;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .2s, transform .25s var(--gal-ease);
}

.gal-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Lightbox (Magnific Popup): counter, name and icon buttons in a slim bar at the top ---------- */
.mfp-bg.gal-mfp {
    background: #0e0e0e;
}

.mfp-fade.mfp-bg.mfp-ready.gal-mfp {
    opacity: .96;
}

.gal-mfp .mfp-bottom-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 10px 64px 10px 20px;
    background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}

.gal-mfp .mfp-counter {
    position: static;
    order: -1;
    flex-shrink: 0;
    font-family: Poppins-Regular;
    font-size: 12px;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .7);
}

.gal-mfp .mfp-title {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.gal-mfp__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gal-mfp__name {
    min-width: 0;
    overflow: hidden;
    font-family: Poppins-Regular;
    font-size: 13px;
    letter-spacing: .03em;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, .85);
}

.gal-mfp__actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.gal-mfp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: transparent;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.gal-mfp__btn:hover,
.gal-mfp__btn:focus-visible {
    border-color: #fff;
    background: #fff;
    color: #111;
}

.gal-mfp__btn--buy,
.gal-mfp__btn--buy:hover,
.gal-mfp__btn--buy:focus-visible {
    border-color: var(--gal-accent);
    background: var(--gal-accent);
    color: var(--gal-ink);
}

.gal-mfp__btn--fav.is-fav,
.gal-mfp__btn--fav.is-fav:hover,
.gal-mfp__btn--fav.is-fav:focus-visible {
    border-color: #fff;
    background: #fff;
    color: var(--gal-fav);
}

.gal-mfp img.mfp-img {
    padding: 64px 0 24px;
}

.gal-mfp .mfp-figure::after {
    top: 64px;
    bottom: 24px;
}

/* ---------- Buy panel ---------- */
/* the page under an open panel does not scroll; only on <html>: this theme's body is height 100%, so hiding its
   overflow too cut the page to one screen and threw the visitor back to the top */
.gal-noscroll {
    overflow: hidden;
}

/* iOS Safari still moved the page when a swipe started on the backdrop, the head or the foot: no panning anywhere in
   the overlay, except inside its scrolling parts (.gal-drawer__body, the select2 list), where touch-action starts over */
.gal-drawer {
    position: fixed;
    inset: 0;
    z-index: 1045; /* above the fixed header (1000), below the select2 dropdown (1051) */
    touch-action: none;
}

.gal-drawer .select2-results__options {
    overscroll-behavior: contain;
}

.gal-drawer[hidden] {
    display: none;
}

.gal-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .45);
    opacity: 0;
    transition: opacity .25s;
}

.gal-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    background: #fff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, .12);
    outline: none;
    transform: translateX(100%);
    transition: transform .3s var(--gal-ease);
}

.gal-drawer.is-open .gal-drawer__backdrop {
    opacity: 1;
}

.gal-drawer.is-open .gal-drawer__panel {
    transform: none;
}

.gal-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 20px;
    border-bottom: 1px solid var(--gal-line);
}

.gal-drawer__eyebrow {
    font-family: Poppins-Medium;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gal-muted);
}

.gal-drawer__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: var(--gal-ink);
    cursor: pointer;
    transition: background-color .2s;
}

.gal-drawer__close:hover,
.gal-drawer__close:focus-visible {
    background: var(--gal-soft);
}

.gal-drawer__body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.gal-drawer__photo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--gal-soft);
}

.gal-drawer__photo img {
    display: block;
    max-width: 100%;
    max-height: 36vh;
    object-fit: contain;
}

.gal-drawer__title {
    margin: 0 0 4px;
    font-family: Poppins-Medium;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-all;
    color: var(--gal-ink);
}

.gal-drawer__price {
    margin-bottom: 20px;
    font-family: Poppins-SemiBold;
    font-size: 20px;
    line-height: 1.4;
    color: var(--gal-ink);
}

.gal-drawer__body .option-addon {
    margin-bottom: 18px;
}

.gal-drawer__body .size-203,
.gal-drawer__body .size-204 {
    width: 100%;
}

.gal-drawer__body .size-203 {
    padding-bottom: 6px;
}

.gal-drawer__qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    font-family: Poppins-Regular;
    font-size: 14px;
    color: #555;
}

.gal-drawer__foot {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--gal-line);
}

.gal-drawer__add {
    width: 100%;
    height: 52px;
    background: var(--gal-accent);
    font-family: Poppins-Medium;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gal-ink);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.gal-drawer__add:hover,
.gal-drawer__add:focus-visible {
    background: var(--gal-ink);
    color: #fff;
}

.gal-drawer__add[disabled] {
    opacity: .6;
    cursor: progress;
}

.gal-drawer__add--ghost {
    border: 1px solid var(--gal-line);
    background: transparent;
}

.gal-drawer__add--ghost:hover,
.gal-drawer__add--ghost:focus-visible {
    border-color: var(--gal-ink);
    background: transparent;
    color: var(--gal-ink);
}

/* ---------- Send the favourites: a centred dialog, a sheet from the bottom on phones ---------- */
.gal-drawer--modal .gal-drawer__panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: calc(100% - 40px);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .14);
    transform: translateY(100%);
}

@media (min-width: 640px) {
    .gal-drawer--modal .gal-drawer__panel {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 50%;
        width: min(480px, calc(100% - 48px));
        max-height: calc(100% - 64px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
        opacity: 0;
        transform: translate(-50%, calc(-50% + 16px));
        transition: transform .3s var(--gal-ease), opacity .2s;
    }
    .gal-drawer--modal.is-open .gal-drawer__panel {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.gal-send {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.gal-send[hidden] {
    display: none;
}

.gal-drawer__title.gal-send__title {
    margin-bottom: 8px;
    font-size: 18px;
    word-break: normal;
    outline: none;
}

.gal-send__lead {
    margin: 0 0 18px;
    font-family: Poppins-Regular;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.gal-send__thumbs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.gal-send__thumbs[hidden] {
    display: none;
}

.gal-send__thumbs img,
.gal-send__more {
    flex: 0 1 52px;
    min-width: 0;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--gal-soft);
}

.gal-send__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Poppins-Medium;
    font-size: 12px;
    color: var(--gal-ink);
}

.gal-send--done .gal-drawer__body {
    padding-top: 36px;
    text-align: center;
}

.gal-send__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--gal-accent);
    font-size: 22px;
    color: var(--gal-ink);
}

.gal-field {
    margin-bottom: 16px;
}

.gal-field__label {
    display: block;
    margin-bottom: 6px;
    font-family: Poppins-Medium;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #555;
}

.gal-field__optional {
    font-family: Poppins-Regular;
    letter-spacing: 0;
    text-transform: none;
    color: var(--gal-muted);
}

.gal-field__input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d4d4d4;
    border-radius: 0;
    background: #fff;
    font-family: Poppins-Regular;
    font-size: 16px; /* no zoom on iPhone */
    line-height: 1.4;
    color: var(--gal-ink);
    transition: border-color .2s, box-shadow .2s;
}

.gal-field__input:focus {
    border-color: var(--gal-ink);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--gal-ink);
}

.gal-field__input[aria-invalid="true"] {
    border-color: var(--gal-error);
}

textarea.gal-field__input {
    min-height: 96px;
    resize: vertical;
}

.gal-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gal-form-error {
    margin: 4px 0 0;
    padding: 10px 12px;
    background: #fdecec;
    font-family: Poppins-Regular;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gal-error);
}

.gal-form-error[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .gal-card__media img,
    .gal-item__open img,
    .gal-drawer__panel,
    .gal-drawer__backdrop,
    .gal-toast {
        transition: none;
    }
    .gal-more__spinner {
        animation-duration: 2.4s;
    }
}

/* ---------- Search in a gallery by the photo's file name: in the bar next to the buttons; on smaller screens a search
   button opens it as a row of its own; while searching the count replaces the bar's photo count ---------- */
.gal-bar__found {
    display: block;
    margin-top: 3px;
    font-family: Poppins-Regular;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gal-ink);
}

.gal-bar__found:empty,
.gal-bar.is-searching .gal-bar__meta {
    display: none;
}

.gal-bar__find {
    flex: 0 1 260px;
    margin-right: -8px; /* the bar spaces its blocks by 16px, the buttons sit 8px apart: the field joins them like one more */
    margin-left: auto;
}

.gal-bar__find .gal-search__input {
    height: 40px;
    padding-left: 38px;
    font-size: 13px;
}

.gal-bar__find .gal-search__icon {
    left: 14px;
    font-size: 13px;
}

.gal-bar__find .gal-search__clear {
    width: 32px;
    height: 32px;
    font-size: 20px;
}

.gal-bar__find-toggle {
    display: none;
}

.gal-bar.is-favs .gal-bar__find,
.gal-bar.is-favs .gal-bar__find-toggle {
    display: none !important;
}

@media (max-width: 991px) {
    .gal-bar__inner {
        flex-wrap: wrap;
    }

    /* the title gives way first (it ends with "…") down to 140px; when the buttons do not fit next to that (a sale
       gallery on a tablet), they take a row of their own instead of crushing it; the field always wraps */
    .gal-bar__info {
        flex: 1 1 140px;
    }

    .gal-bar__actions {
        margin-left: auto;
    }

    .gal-bar__find {
        display: none;
        order: 3;
        flex: 1 1 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .gal-bar.is-finding .gal-bar__find {
        display: block;
    }

    .gal-bar__find .gal-search__input {
        font-size: 16px; /* iOS zooms into a field under 16px */
    }

    .gal-bar__find-toggle {
        display: inline-flex;
    }

    .gal-bar.is-finding .gal-bar__find-toggle {
        border-color: var(--gal-ink);
    }
}

@media (max-width: 575px) {
    /* a phone keeps the sticky bar one row high: the title (also on the cover above) gives way to the icon buttons */
    .gal-bar__info {
        flex-basis: 0;
    }
}
