/*
Theme Name: Videti Zvuk Blocks
Template: twentytwentyfive
Version: 1.0.1
Description: Block templates and presentation for the Videti Zvuk library site.
License: GPL-2.0-or-later
*/

.vz-header {
    background: #173b3e;
    color: #fff;
    position: relative;
    z-index: 3;
}

.vz-header a { color: inherit; }
.vz-header .wp-block-site-logo img { width: clamp(84px, 10vw, 134px); }
.vz-header .wp-block-navigation { font-weight: 650; }
.vz-header .wp-block-navigation__submenu-container,
.vz-header .wp-block-navigation__responsive-container.is-menu-open {
    background: #fff;
    color: #173b3e;
}

.vz-header .wp-block-search__button {
    background: #fff;
    color: #173b3e;
    padding: .55rem;
}

.vz-header .wp-block-search__input { min-width: 0; }
.vz-header .wp-block-search { position: relative; }
.vz-search-suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 5;
    width: min(19rem, 78vw);
    margin: .5rem 0 0;
    padding: .4rem;
    list-style: none;
    border: 1px solid #577876;
    border-radius: .25rem;
    background: #fff;
    color: #173b3e;
}
.vz-search-suggestions a { display: block; padding: .45rem .6rem; }
.vz-search-suggestions a:hover, .vz-search-suggestions a:focus-visible { background: #edf6f4; }
.home .wp-site-blocks > main { margin-block-start: 0; }
.vz-footer { color: #fff; background: #173b3e; }
.vz-footer a { color: #fff; }
.vz-footer .wp-block-site-logo img { width: 105px; }
.vz-footer iframe { max-width: 100%; border: 0; }
.vz-footer .vz-listing-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.vz-footer .vz-listing-items article { padding: .45rem; }
.vz-footer .vz-listing-items h3 { font-size: .88rem; }
.vz-footer .vz-listing-items .vz-like { display: none; }

.vz-page-title { margin-block: 2.5rem 1.5rem; }
.vz-cover .wp-block-cover__inner-container { max-width: min(50rem, 100%); margin: auto; text-align: center; }
.vz-cover .wp-block-cover__inner-container h4 { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.55; font-weight: 450; }
.vz-cover .wp-block-cover__inner-container > :first-child { margin-top: 0; }
.vz-cover .wp-block-cover__inner-container > :last-child { margin-bottom: 0; }
.vz-cover.wp-block-cover { padding: clamp(1.4rem, 4vw, 3rem); }
.vz-hero-carousel { position: relative; }
.vz-hero-carousel .wp-block-cover { margin-block: 0; padding-bottom: 5rem; }
.vz-hero-carousel .wp-block-cover[hidden] { display: none; }
.vz-hero-controls {
    display: flex;
    justify-content: center;
    gap: .5rem;
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
}
.vz-hero-controls button {
    background: #173b3e;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
}
.vz-hero-controls [aria-current="false"] { opacity: .75; }
.vz-hero-progress {
    background: #fff;
    height: 2px;
    position: absolute;
    top: calc(100% + .8rem);
    left: 0;
    right: 0;
    transform: scaleX(0);
    transform-origin: left;
}

.vz-center { text-align: center; }
.vz-right { text-align: right; }
.vz-left { text-align: left; }
.vz-icon { display: inline-block; color: #16816e; font-weight: 700; font-size: 1.6rem; line-height: 1.2; }
.vz-icon-text h3 { margin-top: .5rem; }
.vz-drop-cap { font-weight: 750; font-size: 1.5em; color: #ae352e; }
.vz-typewriter { color: #ae352e; }
.vz-counter strong { font-size: 1.6rem; }
.vz-check-list { list-style-type: '✓  '; }
.vz-social-link { display: inline-flex; margin-right: .75rem; }

.vz-listing-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.vz-listing-filters a, .vz-listing-more, .vz-like, .vz-listing-controls button {
    padding: .4rem .75rem;
    background: #fff;
    color: #173b3e;
    border: 1px solid #577876;
    border-radius: .25rem;
}
.vz-listing-filters [aria-current="true"], .vz-like[aria-pressed="true"] {
    background: #173b3e;
    color: #fff;
}
.vz-listing-items { display: grid; gap: 1rem; grid-template-columns: repeat(var(--vz-columns, 3), minmax(0, 1fr)); }
.vz-listing-items article {
    display: flex;
    flex-direction: column;
    padding: .875rem;
    min-width: 0;
    background: #edf6f4;
    color: #173b3e;
    border-radius: .3rem;
}
.vz-listing-items img {
    object-fit: cover;
    aspect-ratio: 3/2;
    width: 100%;
    height: auto;
    border-radius: .2rem;
}
.vz-listing-items h3 { font-size: 1.1rem; overflow-wrap: anywhere; margin-block: .6rem .85rem; }
.vz-listing-items a { color: inherit; }
.vz-card-link { flex: 1; }
.vz-like, .vz-listing-controls button { cursor: pointer; }
.vz-like { margin-block: .4rem; width: max-content; }
.vz-listing-more { display: inline-block; margin-top: 1rem; }
.vz-listing-carousel .vz-listing-items {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% / var(--vz-columns, 3) - 1rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.vz-listing-carousel article { scroll-snap-align: start; }
.vz-listing-controls { margin-top: .5rem; }
.vz-listing-controls button { margin-right: .35rem; }
.vz-post-list img { border-radius: .2rem; }

main iframe { max-width: 100%; }
main iframe[src*="youtube"], main iframe[src*="youtu.be"] { width: 100%; height: auto; aspect-ratio: 16/9; }
main video, main embed, main img { max-width: 100%; }
.wpcf7-form label { display: block; margin-bottom: .4rem; }
.wpcf7-form input:not([type="submit"]), .wpcf7-form textarea {
    box-sizing: border-box;
    width: min(100%, 40rem);
    padding: .5rem;
    font: inherit;
}
.wpcf7-form input[type="submit"] {
    background: #173b3e;
    color: #fff;
    border: 0;
    border-radius: .25rem;
    padding: .65rem 1.1rem;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 1020px) {
    .vz-header .wp-block-navigation__responsive-container-open { display: flex; }
    .vz-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
}
@media (max-width: 790px) {
    .vz-listing-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vz-listing-carousel .vz-listing-items { grid-auto-columns: calc(58% - .5rem); }
}
@media (max-width: 480px) {
    .vz-listing-items { grid-template-columns: 1fr; }
    .vz-listing-carousel .vz-listing-items { grid-auto-columns: 82%; }
    .vz-header .wp-block-search { max-width: 120px; }
    .vz-cover.wp-block-cover { min-height: 64vh !important; }
    .vz-footer .vz-listing-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
