.left {
    float: left;
    text-align: center;
}

/* latin-ext */
@font-face {
    font-family: 'Arimo';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/arimo/v29/P5sfzZCDf9_T_3cV7NCUECyoxNk37cxcDhrBZQI.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Arimo';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/arimo/v29/P5sfzZCDf9_T_3cV7NCUECyoxNk37cxcABrB.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-page: #0f1724;
    --bg-surface: #152338;
    --bg-surface-soft: #1a2a41;
    --bg-surface-strong: #102033;
    --bg-hover: #223752;
    --bg-nav: #101d2e;
    --bg-menu-mobile: #142439;
    --border: #2f4868;
    --border-soft: #3a5679;
    --text-main: #dbe6f7;
    --text-muted: #9fb3cf;
    --text-bright: #f3f7ff;
    --link: #74d7c5;
    --link-hover: #f3f7ff;
    --accent: #3f8ff0;
    --accent-hover: #2f7cd8;
    --accent-contrast: #e8f3ff;
    --accent-soft: #9bc8ff;
    --badge-overlay: rgba(10, 24, 41, 0.58);
}

body {
    background-color: var(--bg-page);
    margin: 0px;
    padding: 0px;
    font-family: 'Tahoma', Tahoma, Verdana;
    color: var(--text-main);
    font-size: 14px;
}

h1 {
    color: var(--text-main);
    margin: 0px;
    padding: 5px;
    font-size: 18px;
    text-align: center;
}

h2 {
    color: var(--text-main);
    margin: 0px;
    padding: 5px;
    font-size: 18px;
    text-align: center;
}

a {
    color: var(--link);
    text-decoration: none;
    font-size: 14px;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

td {
    font-size: 14px;
}

p {
    font-size: 14px;
}

div#whole {
    width: auto;
    max-width: 1392px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
}

div.block {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    align-items: start;
    clear: both;
    line-height: 14px;
}

div.block>.thumb {
    margin: 0;
    padding: 0px;
    min-width: 0;
}

div.block>.thumb>a {
    position: relative;
    display: block;
}

div.block img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--bg-surface-strong);
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.thumb-webcam-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(31, 104, 181, 0.6);
    color: var(--accent-contrast);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: lowercase;
    pointer-events: none;
    transition: background-color 0.15s ease;
}

.thumb-webcam-badge__icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: block;
}

div.block>.thumb.thumb--webcam>a:hover .thumb-webcam-badge {
    background: rgba(31, 104, 181, 0.8);
}

div.block a:hover img {
    border: 1px solid var(--border-soft);
}

div.block p {
    width: 100%;
    height: 18px;
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0px 0px 2px 0px;
    margin: 0px;
}

div.block p.entity-caption {
    height: 22px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--accent-soft);
    text-shadow: 0 0 2px rgba(63, 143, 240, 0.35);
}

div.block.block--videos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

div.block.block--videos img {
    aspect-ratio: 3 / 2;
}

.video-thumb-meta {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.video-thumb-badge {
    max-width: 100%;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--badge-overlay);
    border: 1px solid rgba(138, 178, 228, 0.25);
    color: var(--text-bright);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-thumb-badge--channel {
    max-width: calc(100% - 84px);
}

.video-thumb-badge--duration {
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

.not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 32px 0;
    color: var(--text-main);
    text-align: center;
}

.not-found__icon {
    width: 86px;
    height: 86px;
    display: block;
    color: var(--accent-soft);
}

.not-found__text {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
}

.actors-tools {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.actors-search {
    position: relative;
    display: block;
    width: clamp(260px, 28vw, 380px);
}

.actors-search input[type="search"] {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 86px 0 10px;
    background: var(--bg-surface-strong);
    color: var(--text-main);
    font-size: 14px;
}

.actors-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    height: 32px;
    border: 0;
    border-radius: 3px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 14px;
    font-weight: bold;
    padding: 0 12px;
    cursor: pointer;
}

.actors-search button:hover {
    background: var(--accent-hover);
    color: var(--text-bright);
}

.actors-letter-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.actors-letter-filter label {
    font-size: 15px;
    color: var(--text-main);
    font-family: Arial, "Helvetica Neue", sans-serif;
}

.actors-letter-filter select {
    min-width: 140px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 15px;
    font-weight: bold;
    padding: 0 10px;
    cursor: pointer;
}

@media (max-width: 680px) {
    .actors-tools {
        align-items: stretch;
    }

    .actors-search {
        width: 100%;
    }

    .actors-letter-filter {
        width: 100%;
    }

    .actors-letter-filter select {
        width: 100%;
    }
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0 24px 0;
}

a.navigation__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-main);
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
}

a.navigation__btn:hover {
    background: var(--bg-hover);
    color: var(--text-bright);
    text-decoration: none;
}

.navigation__icon {
    width: 16px;
    height: 16px;
    display: block;
    flex: 0 0 16px;
}

.navigation__sep {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 1000px) {
    div.block {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    div.block.block--videos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    div.block {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    div.block.block--videos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0;
}

h1.block-header__title {
    margin: 0;
    padding: 5px 0;
    text-align: left;
    font-family: Arial, "Helvetica Neue", sans-serif;
}

.sort {
    position: relative;
    flex: 0 0 auto;
}

.sort__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-surface);
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 15px;
}

.sort__toggle:hover {
    background: var(--bg-hover);
    color: var(--text-bright);
}

.sort__toggle:focus-visible {
    outline: 1px solid var(--accent-soft);
    outline-offset: 1px;
}

.sort__icon {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
}

.sort.is-open .sort__icon {
    transform: rotate(180deg);
}

.sort__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 60;
}

.sort__menu a {
    display: block;
    padding: 9px 10px;
    font-size: 15px;
    line-height: 1.25;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
}

.sort__menu a:hover {
    background: var(--bg-hover);
    color: var(--text-bright);
    text-decoration: none;
}

.sort__menu a[aria-current="true"] {
    background: var(--accent);
    color: var(--accent-contrast);
}

@media (max-width: 680px) {
    .block-header {
        flex-wrap: wrap;
    }

    .sort {
        margin-left: auto;
    }

    .sort__toggle {
        min-height: 38px;
        font-size: 16px;
    }

    .sort__menu a {
        font-size: 16px;
        padding: 10px 12px;
    }
}

ul#flex_top_header {
    display: flex;
    flex-flow: column wrap;
    list-style: none;
    padding: 0;
    margin: 4px auto 6px auto;
}

ul#flex_top_header li {
    width: 130px;
    height: 16px;
    font-size: 14px;
    line-height: 16px;
    text-align: left;
    color: var(--text-muted);
}

ul#flex_top_header a {
    color: var(--text-main);
}

ul#flex_top_header a:hover {
    color: var(--text-bright);
}

ul#flex_top_header {
    width: 310px;
    height: 96px;
}

@media all and (min-width: 480px) {
    ul#flex_top_header {
        width: 460px;
        height: 64px;
    }
}

@media all and (min-width: 640px) {
    ul#flex_top_header {
        width: 620px;
        height: 48px;
    }
}

@media all and (min-width: 960px) {
    ul#flex_top_header {
        width: 860px;
        height: 32px;
    }
}

.toplist1 {
    position: relative;
    width: 100vw;
    margin: 16px 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 14px 0;
    box-sizing: border-box;
    background: var(--bg-nav);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.toplist1__title {
    max-width: 1392px;
    margin: 0 auto 10px auto;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: left;
    font-size: 20px;
    font-family: Arial, "Helvetica Neue", sans-serif;
}

.toplist1__grid {
    list-style: none;
    max-width: 1392px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 10px;
}

.toplist1__item {
    min-width: 0;
}

.toplist1__link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-main);
    text-decoration: none;
}

.toplist1__link:hover {
    background: var(--bg-hover);
    color: var(--text-bright);
    text-decoration: none;
}

.toplist1__rank {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    background: var(--accent);
    color: var(--accent-contrast);
}

.toplist1__text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.2;
}

@media (max-width: 1000px) {
    .toplist1__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .toplist1__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toplist1__title {
        font-size: 18px;
    }
}

/* menu bar */
div#navbar {
    position: relative;
    width: auto;
    min-height: 52px;
    margin-bottom: 10px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    box-sizing: border-box;
    z-index: 90;
}

div#navbar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--bg-nav);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    z-index: -1;
}

a#logo {
    display: inline-block;
    font-family: 'Arimo', sans-serif;
    font-size: 32px;
    margin: 0;
    color: var(--text-bright);
    text-shadow: 0 0 3px rgba(120, 177, 245, 0.6);
    white-space: nowrap;
    line-height: 1;
}

a#logo:hover {
    color: var(--accent-soft);
    text-decoration: none;
}

#nav-toggle {
    display: none;
    width: 36px;
    height: 32px;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-surface);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

#nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-main);
}

#nav-shell {
    margin-left: auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
}

ul#menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 15px;
    font-weight: bold;
    font-family: Arial, "Helvetica Neue", sans-serif;
    min-width: 0;
}

ul#menu li {
    display: block;
}

ul#menu li a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    padding: 16px 12px;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

ul#menu li a:hover {
    color: var(--text-bright);
    background-color: var(--bg-hover);
}

ul#menu li a.current {
    color: var(--text-bright);
    background-color: var(--bg-surface-soft);
}


#nav-search {
    position: relative;
    display: block;
    margin: 0;
    width: clamp(220px, 22vw, 320px);
}

#nav-search input[type="search"] {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0 74px 0 10px;
    background: var(--bg-surface-strong);
    color: var(--text-main);
    font-size: 14px;
}

#nav-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    height: 30px;
    border: 0;
    border-radius: 2px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 14px;
    font-weight: bold;
    padding: 0 10px;
    cursor: pointer;
}

#nav-search button:hover {
    background: var(--accent-hover);
    color: var(--text-bright);
}

@media (max-width: 900px) {
    a#logo {
        font-size: 26px;
    }

    #nav-toggle {
        display: inline-flex;
    }

    #nav-shell {
        position: absolute;
        left: -1px;
        right: -1px;
        top: calc(100% + 1px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px;
        border: 1px solid var(--border);
        border-top: 0;
        background: var(--bg-menu-mobile);
        z-index: 95;
    }

    #navbar.nav-open #nav-shell {
        display: flex;
    }

    ul#menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-menu-mobile);
    }

    ul#menu li a {
        padding: 12px 8px;
        border-top: 1px solid var(--border);
        border-radius: 4px;
        background: transparent;
    }

    ul#menu li:first-child a {
        border-top: 0;
    }

    #nav-search {
        width: 100%;
    }

    #nav-search input[type="search"] {
        min-width: 0;
    }
}

@media (max-width: 560px) {
    div#navbar {
        padding: 0 6px;
        border-left: 0;
        border-right: 0;
    }

    a#logo {
        font-size: 22px;
    }

    #nav-search {
        width: 100%;
    }
}

div#tags {
    display: block;
    text-align: left;
    width: 800px;
    margin: 10px 0 0 0;
}

div#tags a {
    display: block;
    float: left;
    width: 200px;
}

div#bottom {
    display: flex;
    flex-wrap: wrap;
    margin: 0px 0px 8px 0px;
}

div#bottom-linkex {
    flex: 0 0 100%;
    text-align: center;
}

div#bottom-bookmark-us {}

div#bottom-copyright {
    margin: auto auto 0 auto;
}

div#bottom-webmasters {
    margin: auto 0px 0px 0px;
}

div#bottom-bookmark-us a {
    font-size: 22px;
}

div.toplist2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    align-items: center;
}

div.toplist2-item {
    text-align: center;
    min-height: 18px;
}

a.toplist2-link {
    display: inline-block;
    font-size: 17px;
    line-height: 1.25;
}

@media (max-width: 680px) {
    div.toplist2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* pics */
span#show_more {
    color: var(--accent-contrast);
    background-color: var(--accent);
    text-decoration: none;
    padding: 0 0.5em;
    border-radius: 0.2em;
    cursor: pointer;
}

p#description {
    text-align: justify;
    padding: 0 0 4px 0;
    margin: 0;
}

span#long_description {
    display: none;
}

.gallery-main {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.gallery-content {
    min-width: 0;
}

.gallery-toplist {
    margin: 20px 0;
}

.gallery-meta {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    background-color: var(--bg-surface);
    margin: 10px 0;
}

.gallery-meta>h1,
.gallery-meta>h2 {
    text-align: left;
    margin: 0;
    font-size: 20px;
}

.gallery-meta>h1 {
    padding: 0 0 2px 0;
}

.gallery-meta>h2 {
    padding: 0 0 8px 0;
}

.gallery-actors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.gallery-actor {
    display: inline-flex;
    align-items: center;
}

.gallery-actor:not(:last-child) {
    margin-right: 12px;
}

a.gallery-actor-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.gallery-actor-medallion {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 22px;
    border: 0;
    background: transparent;
}

.gallery-actor-medallion img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-actor-name {
    white-space: nowrap;
}

.gallery-meta p,
.gallery-main p,
.gallery-toplist p,
.gallery-main li,
.gallery-toplist li {
    font-size: 14px;
}

.gallery-meta a,
.gallery-main a,
.gallery-toplist a {
    font-size: 14px;
}

.gallery-toplist a.toplist2-link {
    font-size: 17px;
}

.gallery-actor-preview {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: 200px;
    height: 200px;
    border-radius: 24px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
    background: var(--bg-surface-strong);
}

.gallery-actor-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

a.gallery-actor-link:hover .gallery-actor-preview,
a.gallery-actor-link:focus-visible .gallery-actor-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

div.picture_block {
    --thumb-gap: 8px;
    --small-thumb-ratio: 1.35;
    --gallery-cols: 4;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(var(--gallery-cols), minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: var(--thumb-gap);
    margin-bottom: 8px;
}

div.picture_block a.gallery-thumb {
    display: block;
    line-height: 0;
    overflow: hidden;
    background: var(--bg-surface-strong);
    border: 1px solid var(--border);
}

div.picture_block a.gallery-thumb--large {
    grid-column: span 2;
    grid-row: span 2;
}

div.picture_block a.gallery-thumb.gallery-thumb--large img {
    /* Large tile may be slightly deformed; small tiles stay proportional. */
    object-fit: fill;
}

div.picture_block a.gallery-thumb:hover {
    border-color: var(--border-soft);
}

div.picture_block a.gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

img.big_thumb,
img.small_thumb {
    width: 100%;
    height: 100%;
    padding: 0;
}

img.preview {
    width: 96vw;
}

p.visit {
    clear: both;
    padding: 4px;
    margin: 0px;
}

.visit.visit--ad {
    padding: 0;
    margin: 0;
}

aside.gallery-sidebar {
    width: 100%;
    display: grid;
    gap: 10px;
    margin: 0 auto;
}

aside.gallery-sidebar .sidebar-card {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    padding: 10px;
    overflow: hidden;
}

aside.gallery-sidebar .sidebar-card--spot {
    padding: 0;
    background: var(--bg-surface-strong);
}

aside.gallery-sidebar .sidebar-card--spot .visit--ad {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    line-height: 0;
}

aside.gallery-sidebar iframe {
    display: block;
    box-sizing: border-box;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0 !important;
    border: 0;
    margin: 0;
    transform-origin: top left;
}

aside.gallery-sidebar ad_spot {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 0;
}

aside.gallery-sidebar .sidebar-card--accent {
    border-color: var(--border-soft);
    background: linear-gradient(180deg, #1e3552 0%, var(--bg-surface) 100%);
}

aside.gallery-sidebar h3 {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 16px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

a.sidebar-cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 14px;
    background: var(--accent);
    border: 1px solid var(--border-soft);
    color: var(--accent-contrast);
    font-weight: bold;
    padding: 9px 8px;
}

a.sidebar-cta:hover {
    color: var(--text-bright);
    text-decoration: none;
    background: var(--accent-hover);
}

a.sidebar-cta--duplicate {
    display: none;
}

ul.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.sidebar-links li {
    margin: 0;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

ul.sidebar-links li:last-child {
    border-bottom: 0;
}

@media (max-width: 1000px) {
    div.picture_block {
        --gallery-cols: 3;
    }
}

@media (max-width: 680px) {
    div.picture_block {
        --gallery-cols: 2;
    }

    div.picture_block a.gallery-thumb--large {
        grid-column: span 1;
        grid-row: span 1;
    }

    div.picture_block a.gallery-thumb.gallery-thumb--large img {
        object-fit: cover;
    }
}

@media (min-width: 600px) {
    .gallery-main {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
    }

    a.sidebar-cta--duplicate {
        display: block;
        font-size: 26px;
        line-height: 1.2;
        margin-top: 8px;
    }

    aside.gallery-sidebar {
        width: 300px;
        margin: 0;
    }

    aside.gallery-sidebar .sidebar-card {
        width: 300px;
    }
}

div#big_picture_main {
    display: flex;
    flex-flow: column nowrap;
}

div#big_picture {
    flex: 1 100%;
    /* background-color: blue; */
}

div#big_advertisement {
    flex: 1 100%;
    height: 1032px;
    /* background-color: grey; */
}

img#picture {
    max-width: 100%;
    margin-right: auto;
}

@media (min-width: 640px) {
    div#big_picture_main {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
    }

    div#big_picture {
        flex: 0 auto;
        order: 2;
    }

    div#big_advertisement {
        flex: 0 308px;
        order: 1;
    }
}

div#float_advertisement {
    position: absolute;
    left: 50%;
    top: 80px;
    width: 618px;
    height: 534px;
    margin-left: -309px;
    background-color: #000000;
    display: none;
}

div#float_advertisement p {
    font-size: 14px;
    font-weight: bold;
    color: yellow;
    margin: 4px;
    padding: 0px;
    text-align: center;
}

.alink a {
    font-size: 24px;
}
