/* Home columns retain the original connected builder geometry. Only the English
   preview list is shortened; photo/login refinements follow the shared RTL/LTR shell. */
.emjey-home-archive-link { margin: 20px 0 0; }
.emjey-home-archive-link a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid #a9a49a; font-size: 13px; color: #393b39; text-decoration: none; }
.emjey-language-home { --emjey-photo-paper: #cccacf; }
.emjey-language-home #template-lu_UGKJa\#8 > :nth-child(3) { background: var(--emjey-photo-paper) !important; }
.emjey-photo-open { position: relative; display: inline-block; padding: 0; border: 0; background: var(--emjey-photo-paper); cursor: zoom-in; max-width: 100%; line-height: 0; }
.emjey-photo-open img {
    display: block; max-width: 100%; filter: none !important;
    -webkit-mask-image: var(--emjey-photo-edge, none); mask-image: var(--emjey-photo-edge, none);
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.emjey-photo-open__hint { position: absolute; inset: auto 6px 6px auto; display: grid; place-items: center; width: 28px; height: 28px; font: 20px/1 system-ui; background: #111b; color: white; opacity: 0; transition: opacity 240ms ease; }
.emjey-photo-open:hover .emjey-photo-open__hint, .emjey-photo-open:focus-visible .emjey-photo-open__hint { opacity: 1; }
.emjey-home-gallery__toolbar { text-align: center; padding-bottom: 14px; }
.emjey-home-gallery__toolbar h3 { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: #414341; }
.emjey-home-gallery__shuffle { min-height: 44px; padding: 6px 12px; background: #ffffff70; border: 1px solid #aaa9a5; color: #414341; border-radius: 3px; font-size: 12px; cursor: pointer; }
.emjey-home-gallery__shuffle:hover { background: #fff; }
.emjey-photo-opened { overflow: hidden; }
.emjey-photo-dialog { box-sizing: border-box; width: min(900px,calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 56px 24px 20px; border: 1px solid #888; border-radius: 3px; background: #171818; color: #f2efe8; }
.emjey-photo-dialog::backdrop { background: #000d; }
.emjey-photo-dialog > img { display: block; margin: auto; max-width: 100%; width: min(420px,100%); height: min(420px,calc(100dvh - 180px)); max-height: calc(100dvh - 180px); object-fit: contain; }
.emjey-photo-dialog button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid #888; background: transparent; color: inherit; cursor: pointer; font: 24px/1 system-ui; }
.emjey-photo-dialog button:hover { background: #ffffff20; }
.emjey-photo-dialog__close { position: absolute; top: 8px; right: 8px; }
.emjey-photo-dialog__controls { display: flex; direction: ltr; justify-content: center; align-items: center; gap: 20px; margin-top: 16px; }
.emjey-photo-dialog__controls span { font-size: 13px; }
.emjey-language-home :is(.emjey-photo-open,.emjey-home-gallery__shuffle,.emjey-photo-dialog button,.emjey-home-archive-link a):focus-visible { outline: 2px solid #68685d; outline-offset: 3px; }
@media (min-width: 960px) {
    html[lang^="en"] .emjey-language-home [data-emjey-news="compact"] > li { list-style: none; }
    html[lang^="en"] .emjey-language-home [data-emjey-news="compact"] article { padding-block: 16px !important; border-bottom: 1px solid #e3e3df; }
    html[lang^="en"] .emjey-language-home [data-emjey-news="compact"] > li:first-child article { padding-top: 0 !important; }
    html[lang^="en"] .emjey-language-home [data-emjey-news="compact"] .emjey-mod-article-title::before { content: none; }
    html[lang^="en"] .emjey-language-home [data-emjey-news="compact"] [property="text"] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin-top: 10px; font-size: 14px; line-height: 1.65; }
    html[lang^="en"] .emjey-language-home [data-emjey-news="compact"] [property="text"] p { margin: 0; }
    html[lang^="en"] .emjey-language-home [data-emjey-news="compact"] .emjey-article-date { display: block; margin-bottom: 5px; font-size: 12px; color: #77786f; }
    html[lang^="en"] .emjey-language-home [data-emjey-news="compact"] .emjey-date-title-sep { display: none; }
    .emjey-language-home #template-lu_UGKJa\#8 > :nth-child(3) .uk-tile { align-items: flex-start; flex-direction: column; justify-content: flex-start; padding: 26px 12px !important; background: var(--emjey-photo-paper) !important; }
    .emjey-language-home .emjey-home-gallery > .uk-panel { display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; }
    .emjey-language-home #template-lu_UGKJa\#8 > :nth-child(3) .uk-tile > .uk-panel > .uk-panel { margin: 0 !important; }
    .emjey-language-home .emjey-home-gallery .emjey-photo-open img { aspect-ratio: 1; height: auto; object-fit: cover; }
    .emjey-language-home .emjey-home-gallery__toolbar { width: 100%; }
    html body.emjey-language-home #template-lu_UGKJa\#7 { position: relative; isolation: isolate; background: #dedede !important; background-image: none !important; }
    html body.emjey-language-home #template-lu_UGKJa\#7::before {
        content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
        background: url('../images/login-silhouette.svg') center 14px / 90px 120px no-repeat,
            linear-gradient(to right,#000 0,#444 22px,#c7c7c7 42px,#e5e5e5 68px,#dedede 100%) !important;
        transform: none;
    }
    html[dir="ltr"] body.emjey-language-home #template-lu_UGKJa\#7::before { transform: scaleX(-1); }
    html body.emjey-language-home #template-lu_UGKJa\#6 { top: 134px !important; padding: 12px 42px 28px 12px; padding-inline: 12px 42px; margin: 0; box-sizing: border-box; min-width: 0; background: transparent; color: #424640; }
    .emjey-language-home #template-lu_UGKJa\#6 .control-group { margin-bottom: 14px; }
    .emjey-language-home #template-lu_UGKJa\#6 .add-on { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; font-size: 12px; }
    .emjey-language-home #template-lu_UGKJa\#6 :is(input[type="text"],input[type="password"]) { display: block; width: 100%; max-width: 100%; box-sizing: border-box; min-height: 42px; padding: 8px; border: 1px solid #a5a7a1; border-radius: 3px; background: #f6f6f3; color: #282b28; font-size: 13px; }
    .emjey-language-home #template-lu_UGKJa\#6 #form-login-remember .input-prepend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .emjey-language-home #template-lu_UGKJa\#6 #form-login-remember label { margin: 0; font-size: 12px; }
    .emjey-language-home #template-lu_UGKJa\#6 .btn { width: 100%; height: 42px; min-height: 42px; box-sizing: border-box; line-height: 1.4; padding: 8px; border: 1px solid #424640; border-radius: 3px; background: linear-gradient(#4b4e49,#30332f); color: #f6f6f3; font-size: 13px; cursor: pointer; }
    .emjey-language-home #template-lu_UGKJa\#6 .btn:hover { background: #565a53; }
    .emjey-language-home #template-lu_UGKJa\#6 #form-login-submit p { margin: 0 0 12px; }
    .emjey-language-home #template-lu_UGKJa\#6 #form-login-submit a { color: #424640; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; text-underline-offset: 3px; }
    .emjey-language-home #template-lu_UGKJa\#6 :is(input,button,a):focus-visible { outline: 2px solid #66695e; outline-offset: 3px; }
}
@media (max-width: 959px) {
    .emjey-language-home .emjey-home-gallery { display: block !important; }
    .emjey-home-gallery__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
    .emjey-home-gallery__toolbar h3 { color: #414341; text-align: start; }
    .emjey-home-gallery__shuffle { flex-shrink: 0; color: #414341; background: #ffffff70; border-color: #99959d; }
    .emjey-home-gallery__shuffle:hover { background: #fff; }
    .emjey-photo-open { display: block; width: 100%; }
    .emjey-photo-open__hint { opacity: 1; }
    .emjey-mobile-home__drawer .emjey-home-account #template-lu_UGKJa\#6 .btn { background: linear-gradient(#60635c,#40443e); color: #f6f6f3; border: 1px solid #91948c; border-radius: 3px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .emjey-photo-open img,.emjey-photo-open__hint { transition: none; } }
