.ehk-photo-mosaic { position: relative; grid-template-columns: 2fr 1fr 1fr !important; grid-template-rows: 260px 260px !important; }
.ehk-photo-mosaic > .ehk-mosaic-item { display: block !important; }
.ehk-photo-mosaic > .ehk-mosaic-item:first-child { grid-column: 1 !important; grid-row: 1 / 3 !important; }
.ehk-photo-mosaic > .ehk-mosaic-item { position: relative; min-width: 0; min-height: 0; }
.ehk-photo-mosaic > .ehk-mosaic-item:focus-visible { outline: 3px solid var(--gold, #cda55b); outline-offset: -3px; }
.ehk-photo-mosaic .ehk-photo-more { position: absolute; bottom: 16px; right: 16px; padding: 6px 12px; border-radius: 24px; background: rgba(0, 0, 0, .65); color: #fff; font-weight: 600; }
.ehk-photo-mosaic .ehk-photo-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 26px; cursor: pointer; }
.ehk-photo-mosaic .ehk-photo-arrow[hidden], .ehk-photo-mosaic .ehk-photo-counter[hidden] { display: none; }
.ehk-photo-mosaic .ehk-photo-previous { left: 24px; }
.ehk-photo-mosaic .ehk-photo-next { right: calc(50% + 20px); }
.ehk-photo-mosaic .ehk-photo-counter { position: absolute; bottom: 24px; right: calc(50% + 20px); z-index: 2; padding: 6px 12px; border-radius: 24px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .85rem; }
.ehk-photo-mosaic .ehk-photo-badges { position: absolute; bottom: 24px; left: 24px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(50% - 125px); }
.ehk-photo-mosaic .ehk-photo-badges > a.ehk-photo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: rgba(255, 255, 255, .95); color: var(--ink, #182927); border-radius: 24px; font-size: .85rem; line-height: 1.3; text-decoration: none; }
.ehk-photo-mosaic .ehk-photo-arrow:focus-visible, .ehk-photo-mosaic .ehk-photo-badge:focus-visible { outline: 3px solid var(--gold, #cda55b); outline-offset: 3px; }
.ehk-photo-mosaic.ehk-mosaic-empty .ehk-photo-badges { bottom: 24px; max-width: calc(100% - 48px); }
.ehk-photo-mosaic[data-photo-count="1"] { grid-template-columns: 1fr !important; }
.ehk-photo-mosaic[data-photo-count="1"] > .ehk-mosaic-item:first-child { grid-column: 1; }
.ehk-photo-mosaic[data-photo-count="1"] .ehk-photo-badges { max-width: calc(100% - 48px); }
.ehk-photo-mosaic[data-photo-count="2"], .ehk-photo-mosaic[data-photo-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.ehk-photo-mosaic[data-photo-count="2"] > .ehk-mosaic-item:first-child, .ehk-photo-mosaic[data-photo-count="3"] > .ehk-mosaic-item:first-child { grid-column: 1; }
.ehk-photo-mosaic[data-photo-count="2"] > .ehk-mosaic-item { grid-row: 1 / 3; }
.ehk-photo-mosaic[data-photo-count="4"] > .ehk-mosaic-item:last-of-type { grid-column: 2 / 4; }
.ehk-photo-lightbox .mfp-arrow:focus-visible, .ehk-photo-lightbox .mfp-close:focus-visible { outline: 3px solid #fff; }
.ehk-photo-lightbox .mfp-counter { color: #fff; }
@media (max-width: 991px) {
    .ehk-photo-mosaic { --gallery-main-height: clamp(220px, 60vw, 320px); grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-template-rows: var(--gallery-main-height) 100px !important; }
    .ehk-photo-mosaic > .ehk-mosaic-item:first-child { grid-column: 1 / -1 !important; grid-row: 1 !important; }
    .ehk-photo-mosaic .ehk-photo-next { right: 24px; }
    .ehk-photo-mosaic .ehk-photo-badges { left: 20px; bottom: 132px; max-width: calc(100% - 125px); }
    .ehk-photo-mosaic .ehk-photo-counter { right: 20px; bottom: 132px; }
    .ehk-photo-mosaic .ehk-photo-arrow { top: calc(var(--gallery-main-height) / 2 + 8px); }
    .ehk-photo-mosaic[data-photo-count="1"] { grid-template-rows: var(--gallery-main-height) !important; }
    .ehk-photo-mosaic[data-photo-count="1"] .ehk-photo-badges { bottom: 24px; }
    .ehk-photo-mosaic[data-photo-count="2"] > .ehk-mosaic-item:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .ehk-photo-mosaic[data-photo-count="4"] > .ehk-mosaic-item:last-of-type { grid-column: auto; }
    .ehk-photo-mosaic[data-photo-count="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .ehk-photo-mosaic .ehk-photo-more { bottom: 8px; right: 5px; padding: 5px 6px; font-size: .75rem; }
    .ehk-photo-mosaic .ehk-photo-badges > a.ehk-photo-badge { display: inline-flex; }
}
