/*
Theme Name: LHU
Description: Tema za Leksikon hrvatskih umjetnica.
Version: 3.0
*/

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background-color: rgb(230, 230, 230);
    font-family: "Source Sans 3", sans-serif;
    color: rgb(30, 30, 30);
}

.site-wrapper {
    width: 1140px;
    margin: 35px auto 0 auto;
    padding: 30px;
    box-sizing: border-box;
    background-color: rgb(255, 255, 255);
}

.site-content {
    width: 1080px;
    margin-top: 70px;
}

/* HEADER */
.site-header {
    width: 1080px;
}

.header-main {
    width: 1080px;
    display: flex;
    align-items: center;
}

.logo {
    width: 200px;
    height: 84px;
}

.logo img {
    display: block;
    width: 200px;
    height: 84px;
}

/* NAVIGATION */
.main-navigation {
    margin-left: auto;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    display: block;
    width: 145px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgb(60, 60, 60);
    color: rgb(40, 40, 40);
    text-decoration: none;
    font-size: 20px;
}

.main-navigation a:hover {
    color: rgb(136, 0, 17);
    text-decoration: none;
}

.menu-toggle {
    display: none;
}

/* SEARCH */
.header-search {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.search-form {
    display: flex;
    width: 430px;
}

.search-field {
    flex: 1;
    box-sizing: border-box;
    height: 38px;
    padding: 6px 10px;
    border: 1px solid rgb(160, 160, 160);
    background-color: rgb(255, 255, 255);
    color: rgb(30, 30, 30);
    font-family: "Source Sans 3", sans-serif;
    font-size: 17px;
}

.search-submit {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid rgb(136, 0, 17);
    background-color: rgb(136, 0, 17);
    color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
}

.search-submit svg {
    display: block;
    width: 22px;
    height: 22px;
}

.search-submit:hover {
    background-color: rgb(167, 10, 44);
    border-color: rgb(167, 10, 44);
}

/* HOMEPAGE HERO */
.hero {
    width: 1080px;
    height: 535px;
    margin-top: 40px;
}

.hero img {
    display: block;
    width: 1080px;
    height: 535px;
    object-fit: cover;
}

/* HOMEPAGE ARTIST CAROUSELS */
.artist-row {
    width: 1080px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.artist-row-header {
    margin-bottom: 15px;
}

.artist-row-header h2 {
    margin: 0;
    color: rgb(167, 10, 44);
    font-size: 26px;
    font-weight: 600;
}

.artist-row-header h2 a,
.artist-row-header h2 a:hover {
    color: rgb(167, 10, 44);
    text-decoration: none;
}

.artist-carousel {
    position: relative;
    width: 1080px;
}

.artist-scroll-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
}

.artist-scroll-container::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.artist-card {
    flex: 0 0 220px;
    width: 220px;
    box-sizing: border-box;
    padding: 20px;
    background-color: rgb(252, 238, 241);
}

.artist-card a {
    display: block;
    color: rgb(30, 30, 30);
    text-decoration: none;
}

.artist-card img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.artist-card h3 {
    margin: 12px 0 0 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
}

.artist-card-ime,
.artist-card-prezime {
    display: block;
}

.artist-card a:hover h3 {
    color: rgb(136, 0, 17);
}

.artist-scroll {
    position: absolute;
    top: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background-color: rgba(30, 30, 30, 0.35);
    color: rgb(235, 235, 235);
    font-family: "Source Sans 3", sans-serif;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.artist-scroll-left {
    left: 0;
}

.artist-scroll-right {
    right: 0;
}

.artist-carousel:hover .artist-scroll {
    opacity: 1;
}

.artist-scroll:hover {
    background-color: rgba(30, 30, 30, 0.55);
}

/* SEARCH / ARCHIVES / TAXONOMIES */
.archive-page-title {
    margin: 0 0 1.5em 0;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: rgb(167, 10, 44);
}

.archive-no-results {
    margin: 0 40px;
    font-size: 20px;
    line-height: 1.75;
}

.archive-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.archive-card {
    min-width: 0;
    padding: 35px 20px 20px 20px;
    box-sizing: border-box;
    background-color: rgb(252, 238, 241);
}

.archive-card-image-link {
    display: block;
    text-decoration: none;
}

.archive-card-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.archive-card-content {
    margin-top: 16px;
}

.archive-card-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
}

.archive-card-title a {
    color: rgb(136, 0, 17);
    text-decoration: none;
}

.archive-card-title a:hover {
    color: rgb(136, 0, 17);
    text-decoration: none;
}

.archive-card-excerpt {
    font-size: 17px;
    line-height: 1.5;
    text-align: left;
}

.archive-card-excerpt {
    overflow: hidden;
}

.archive-card-excerpt p {
    margin: 0;
}

/* STATIC PAGES */
body.page .site-content {
    box-sizing: border-box;
    padding: 40px 40px 0 40px;
    font-size: 20px;
    line-height: 1.75;
}

body.page .site-content h1 {
    margin-top: 0;
    margin-bottom: 1.5em;
    font-size: 36px;
    font-weight: 600;
    color: rgb(167, 10, 44);
}

body.page .site-content a {
    color: rgb(167, 10, 44);
    text-decoration: underline;
}

body.page .site-content a:hover {
    color: rgb(136, 0, 17);
}

/* SINGLE POSTS */
.single-layout {
    display: flex;
    gap: 50px;
}

.single-sidebar {
    width: 200px;
    flex: 0 0 200px;
}

.post-main {
    width: 780px;
    flex: 0 0 780px;
    margin-left: 15px;
    margin-right: 35px;
}

.post-main h1,
.osnovni-podatci h1 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 36px;
    font-weight: 600;
    color: rgb(167, 10, 44);
}

.post-main-content {
    font-size: 20px;
    line-height: 1.75;
}

.post-main-content a {
    color: rgb(167, 10, 44);
    text-decoration: underline;
}

.post-main-content a:hover {
    color: rgb(136, 0, 17);
}

.osnovni-podatci {
    font-size: 20px;
}

.osnovni-podatci-red {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.osnovni-podatci-lijevo {
    width: 360px;
}

.varijante-imena,
.kvalifikativ-umjetnice,
.rodjenje-smrt {
    font-size: 20px;
}

.citat-umjetnice {
    width: 390px;
}

.citat-umjetnice blockquote {
    margin: 0;
    padding: 20px 24px;
    border-left: 4px solid rgb(167, 10, 44);
    background-color: rgb(252, 238, 241);
    color: rgb(80, 20, 30);
    font-size: 20px;
    font-style: normal;
    line-height: 1.6;
}

.post-main-content blockquote {
    margin: 1.5em 0;
    padding: 20px 24px;
    border-left: 4px solid rgb(167, 10, 44);
    background-color: rgb(252, 238, 241);
    color: rgb(80, 20, 30);
    font-size: 20px;
    font-style: normal;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .post-main-content blockquote {
        margin-left: 25px;
        margin-right: 25px;
    }
}

.sazetak {
    font-size: 22px;
    line-height: 1.75;
}

/* LITERATURE */
.literatura-toggle summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
}

.literatura-toggle summary::-webkit-details-marker {
    display: none;
}

.literatura-toggle summary::marker {
    content: "";
}

.literatura-toggle summary::before {
    content: "▶";
    display: inline-block;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.literatura-toggle[open] summary::before {
    transform: rotate(90deg);
}

.literatura-sadrzaj {
    margin-top: 15px;
    font-size: 17px;
    line-height: 1.6;
}

.post-main-content .literatura-sadrzaj p {
    font-size: 17px;
    line-height: 1.6;
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

/* CITATION */
.citiranje,
.citiranje p {
    font-size: 17px;
    line-height: 1.6;
}

.citiranje .podnaslov {
    display: inline;
    margin-top: 0 !important;
    margin-bottom: 0;
}

.citiranje p {
    margin-top: 2.5em;
}

.citiranje-copy {
    cursor: pointer;
}

.citiranje-copy:focus-visible {
    outline: 2px solid rgb(167, 10, 44);
    outline-offset: 3px;
}

.citiranje-copy-status {
    display: block;
    min-height: 1.4em;
    margin-top: 0.4em;
    font-size: 15px;
    opacity: 1;
    transition: opacity 1.5s ease;
}

.citiranje-copy-status.is-fading {
    opacity: 0;
}


.single-sidebar figcaption {
    font-size: 15px;
    line-height: 1.4;
}

.glavna-slika-autor {
    font-size: 13px;
    line-height: 1.35;
}

/* ILLUSTRATIONS */
.lzmk-ilustracija {
    width: fit-content;
    max-width: 100%;
    margin: 1.5em auto;
}

.lzmk-ilustracija__slika {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 6px;
}

.lzmk-ilustracija__legenda {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.4em;
    font-size: 15px;
    line-height: 1.35;
    text-align: left;
    overflow-wrap: break-word;
}

.lzmk-ilustracija__autor {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.2em;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* FOOTER */
.site-footer {
    width: 1080px;
    margin-top: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgb(200, 200, 200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 30px;
}

.footer-right a {
    color: rgb(40, 40, 40);
    text-decoration: none;
}

.footer-right a:hover {
    color: rgb(136, 0, 17);
    text-decoration: none;
}

/* CONTENT UTILITY CLASSES */
.italic { font-style: italic; }
.bold { font-weight: bold; }
.naslov { font-weight: bold; font-size: 150%; }

.podnaslov {
    display: block;
    margin-top: 2em !important;
    margin-bottom: 1em;
    line-height: 1.55;
    font-weight: bold;
    font-variant: small-caps;
    color: rgb(167, 10, 44);
}


/* Safari: avoid problematic small-caps rendering. */
.is-safari .podnaslov {
    font-variant: normal;
}

.literatura { font-size: 80%; }
.kapitelhen { font-variant: small-caps; }
.potpis { text-align: right; }

/* TABLET - LANDSCAPE / SMALL DESKTOP */
@media (min-width: 901px) and (max-width: 1180px) {
    .site-wrapper {
        width: calc(100% - 30px);
        max-width: 1140px;
        margin-top: 25px;
        padding: 20px;
    }

    .site-header,
    .header-main,
    .site-content,
    .hero,
    .artist-row,
    .artist-carousel,
    .site-footer {
        width: 100%;
    }

    .main-navigation { gap: 18px; }
    .main-navigation a { width: 120px; font-size: 19px; }
    .search-form { width: 400px; max-width: 100%; }

    .hero { height: auto; }
    .hero img { width: 100%; height: auto; object-fit: contain; }

    .single-layout { gap: 30px; }
    .single-sidebar { width: 180px; flex: 0 0 180px; }

    .post-main {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 0;
        margin-right: 15px;
    }

    .osnovni-podatci-red { gap: 24px; }
    .osnovni-podatci-lijevo { width: auto; flex: 0 0 42%; }
    .citat-umjetnice { width: auto; flex: 1 1 auto; min-width: 0; }

    body.page .site-content { padding-left: 30px; padding-right: 30px; }
    .footer-right { gap: 20px; }
}

/* TABLET - PORTRAIT */
@media (min-width: 768px) and (max-width: 900px) {

    .archive-no-results {
        margin-left: 25px;
        margin-right: 25px;
    }

    .archive-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
    .site-wrapper {
        width: calc(100% - 24px);
        margin-top: 20px;
        padding: 20px;
    }

    .site-header,
    .header-main,
    .site-content,
    .hero,
    .artist-row,
    .artist-carousel,
    .site-footer {
        width: 100%;
    }

    .header-main {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        padding: 9px 8px;
        border: 1px solid rgb(136, 0, 17);
        background-color: rgb(136, 0, 17);
        flex-direction: column;
        justify-content: space-between;
        align-self: flex-start;
        cursor: pointer;
        box-sizing: border-box;
    }

    .menu-toggle-line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: rgb(255, 255, 255);
    }

    .menu-toggle:hover {
        background-color: rgb(167, 10, 44);
        border-color: rgb(167, 10, 44);
    }

    .main-navigation {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 16px 0 0 0;
    }

    .main-navigation.is-open { display: flex; }

    .main-navigation a {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 0;
        font-size: 19px;
    }

    .header-search { margin-top: 16px; }
    .search-form { width: 400px; max-width: 100%; }

    .hero { height: auto; margin-top: 35px; }
    .hero img { width: 100%; height: auto; object-fit: contain; }

    .site-content { margin-top: 60px; }
    .artist-row { margin-top: 15px; margin-bottom: 25px; }
    .artist-scroll-container { gap: 24px; }
    .artist-card { flex-basis: 200px; width: 200px; padding: 18px; }

    .single-layout {
        display: grid;
        grid-template-columns: 200px minmax(0, 1fr);
        column-gap: 30px;
        row-gap: 25px;
        align-items: start;
    }

    .post-main,
    .osnovni-podatci,
    .osnovni-podatci-red {
        display: contents;
    }

    .osnovni-podatci > h1 {
        grid-column: 1 / -1;
        order: 1;
        margin-bottom: 0;
    }

    .single-sidebar {
        grid-column: 1;
        order: 2;
        width: 200px;
        min-width: 0;
    }

    .single-sidebar .lzmk-ilustracija__slika { max-width: 200px; }

    .osnovni-podatci-lijevo {
        grid-column: 2;
        order: 3;
        width: auto;
        min-width: 0;
    }

    .citat-umjetnice {
        grid-column: 1 / -1;
        order: 4;
        width: auto;
        min-width: 0;
    }

    .sazetak {
        grid-column: 1 / -1;
        order: 5;
        min-width: 0;
    }

    .post-main-content {
        grid-column: 1 / -1;
        order: 6;
        min-width: 0;
    }

    body.page .site-content { padding: 30px 25px 0 25px; }

    .site-footer {
        align-items: flex-start;
        gap: 20px;
    }

    .footer-right {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* MOBILE */
@media (max-width: 767px) {

    .archive-page-title {
        margin: 0 0 1em 0;
        font-size: 30px;
        line-height: 1.15;
    }

    .archive-no-results {
        margin: 0 4px;
        font-size: 19px;
        line-height: 1.7;
    }

    .archive-card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .archive-card {
        padding: 18px;
    }

    .archive-card-title {
        font-size: 21px;
    }

    .archive-card-excerpt {
        font-size: 17px;
    }
    .site-wrapper {
        width: calc(100% - 16px);
        margin: 8px auto 0 auto;
        padding: 16px;
    }

    .site-header,
    .header-main,
    .site-content,
    .hero,
    .artist-row,
    .artist-carousel,
    .site-footer {
        width: 100%;
    }

    .site-content { margin-top: 50px; }

    .header-main {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .logo { width: 170px; height: auto; }
    .logo img { width: 170px; height: auto; }

    .menu-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        padding: 9px 8px;
        border: 1px solid rgb(136, 0, 17);
        background-color: rgb(136, 0, 17);
        flex-direction: column;
        justify-content: space-between;
        align-self: flex-start;
        cursor: pointer;
        box-sizing: border-box;
    }

    .menu-toggle-line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: rgb(255, 255, 255);
    }

    .menu-toggle:hover {
        background-color: rgb(167, 10, 44);
        border-color: rgb(167, 10, 44);
    }

    .main-navigation {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 14px 0 0 0;
    }

    .main-navigation.is-open { display: flex; }

    .main-navigation a {
        width: 100%;
        box-sizing: border-box;
        padding: 9px 0;
        font-size: 18px;
    }

    .header-search { width: 100%; margin-top: 16px; }
    .search-form { width: 100%; }
    .search-field { min-width: 0; font-size: 16px; }

    .hero { height: auto; margin-top: 35px; }
    .hero img { width: 100%; height: auto; object-fit: contain; }

    .artist-row { margin-top: 15px; margin-bottom: 28px; }
    .artist-row-header { margin-bottom: 12px; }
    .artist-row-header h2 { font-size: 24px; }

    .artist-scroll-container {
        gap: 20px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .artist-card {
        flex: 0 0 180px;
        width: 180px;
        padding: 16px;
        scroll-snap-align: start;
    }

    .artist-card img {
        max-width: 100%;
        height: auto;
    }

    .artist-card h3 { font-size: 15px; }

    .artist-scroll {
        display: block;
        width: 34px;
        height: 34px;
        font-size: 24px;
        opacity: 0.65;
    }

    body.page .site-content {
        padding: 20px 4px 0 4px;
        font-size: 19px;
        line-height: 1.7;
    }

    body.page .site-content h1 {
        margin-bottom: 1em;
        font-size: 30px;
        line-height: 1.15;
    }

    .single-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 22px;
    }

    .post-main,
    .osnovni-podatci,
    .osnovni-podatci-red {
        display: contents;
    }

    .osnovni-podatci > h1 {
        grid-column: 1;
        order: 1;
        margin: 0;
        font-size: 30px;
        line-height: 1.15;
    }

    .single-sidebar {
        grid-column: 1;
        order: 2;
        width: 100%;
        min-width: 0;
    }

    .single-sidebar .lzmk-ilustracija__slika {
        width: auto;
        max-width: 100%;
        height: auto;
    }

    .osnovni-podatci-lijevo {
        grid-column: 1;
        order: 3;
        width: 100%;
        min-width: 0;
    }

    .citat-umjetnice {
        grid-column: 1;
        order: 4;
        width: 100%;
        min-width: 0;
    }

    .citat-umjetnice blockquote {
        padding: 16px 18px;
        font-size: 19px;
    }

    .sazetak {
        grid-column: 1;
        order: 5;
        min-width: 0;
        font-size: 20px;
        line-height: 1.7;
    }

    .post-main-content {
        grid-column: 1;
        order: 6;
        min-width: 0;
        font-size: 19px;
        line-height: 1.7;
    }

    .varijante-imena,
    .kvalifikativ-umjetnice,
    .rodjenje-smrt {
        font-size: 19px;
    }

    .post-main-content img,
    .sazetak img {
        max-width: 100%;
        height: auto;
    }

    .post-main-content,
    .sazetak,
    .literatura-sadrzaj,
    .citiranje {
        overflow-wrap: anywhere;
    }

    .podnaslov {
        margin-top: 1.5em !important;
        margin-bottom: 1em;
        line-height: 1.5;
    }
    .citiranje .podnaslov {
        margin-top: 0 !important;
        margin-bottom: 0;
    }
    .citiranje p { margin-top: 2em; }

    .site-footer {
        display: block;
        margin-top: 40px;
        padding-bottom: 10px;
        line-height: 1.5;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 18px;
    }
}

/* =========================================================
   QUOTE INDENTATION - TABLETS AND LANDSCAPE PHONES
   ========================================================= */

/* Tablets - portrait and landscape. */
@media (min-width: 768px) and (max-width: 1180px) {
    .citat-umjetnice,
    .post-main-content blockquote {
        margin-left: 25px;
        margin-right: 25px;
    }
}

/* Phones - landscape only. */
@media (max-width: 767px) and (orientation: landscape) {
    .citat-umjetnice,
    .post-main-content blockquote {
        margin-left: 25px;
        margin-right: 25px;
    }
}

