/* Rawaretro theme — close copy of the legacy rawaretro.test design.
   rr-* classes are this theme's own layout; the unprefixed classes below
   (.gallery, .video_frame, .embed_video, .playlist, ...) match markup
   already baked into migrated content and must not be renamed. */

@font-face {
    font-family: "rr-main";
    src: url("fonts/TrixieCyr-Plain.woff2") format("woff2"),
         url("fonts/TrixieCyr-Plain.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "rr-header";
    src: url("fonts/Pangolin-Regular.woff2") format("woff2"),
         url("fonts/Pangolin-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

* { box-sizing: border-box; }

html {
    font-family: "rr-main", serif;
    font-size: 20px;
    background: url("images/paper.webp");
    color: #222;
}

body { margin: 0; }

h1, h2, h3, h4, h5 {
    margin: 1.38rem 0;
    font-family: "rr-header", cursive;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}
h1 { margin-top: 0; font-size: 2.488rem; }
h2 { font-size: 2.074rem; }
h3 { font-size: 1.728rem; }
h4 { font-size: 1.44rem; }
h5 { font-size: 1.2rem; }
small { font-size: 0.833rem; }

a { color: #c00; text-decoration: none; transition: 0.3s; }
a:hover { color: #800; }

img { filter: grayscale(100%); max-width: 100%; height: auto; }
audio, video { display: block; width: 100%; max-width: 100%; }

.rr-visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- flip frame + top bar ---- */

.rr-frame {
    transform-style: preserve-3d;
    transition: 1s;
    transform: rotateY(0);
    backface-visibility: hidden;
}
.rr-frame.is-open { transform: rotateY(180deg); }

.rr-top {
    width: 90%;
    max-height: 100px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
@media (max-width: 992px) { .rr-top { max-height: 80px; } }
.rr-logo { max-height: 100px; display: block; }
.rr-logo img { max-height: 100px; filter: none; }
@media (max-width: 992px) { .rr-logo, .rr-logo img { max-height: 80px; } }
.rr-lang { font-family: "rr-header", cursive; color: #222; }
.rr-lang a { color: inherit; text-decoration: underline; }
.rr-lang .is-current { text-decoration: none; }
@media (max-width: 992px) { .rr-lang { font-size: .8rem; } }
.rr-add { width: 150px; }
@media (max-width: 992px) { .rr-add { width: 20px; } }

/* ---- content ---- */

.rr-content {
    width: 100%;
    max-width: 1240px;
    min-height: calc(100vh - 200px);
    margin: 0 auto;
    padding: 0 20px 20px;
}
.rr-content.rr-content-main { max-width: 4000px; }
@media (max-width: 992px) { .rr-content { min-height: calc(100vh - 150px); } }
.rr-content p, .rr-page-content p, .rr-popup-bio p { text-align: justify; margin: 1em 0; }
.rr-content ol, .rr-content ul, .rr-page-content ol, .rr-page-content ul { text-align: justify; margin-left: 2em; }
.rr-content ul, .rr-page-content ul { list-style-type: square; }

.rr-page-title, .rr-empty { text-align: center; }
.rr-page-image { display: block; margin: 0 auto 1em; }

/* ---- full-screen flip menu ---- */

.rr-menu {
    /* fixed, not absolute — opening it while scrolled down a long page
       shows the panel immediately instead of the page's current scroll
       offset (an empty stretch of flipped paper) */
    position: fixed;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    transition: 1s;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}
.rr-menu.is-open { transform: rotateY(0); }
.rr-menu ul {
    padding: 20px;
    margin: 0;
    width: 100%;
    height: 100vh;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: space-evenly;
}
.rr-menu li a {
    display: block;
    background: url("images/menu-item.png");
    background-size: cover;
    font-family: "rr-header", cursive;
    font-size: clamp(16px, 4vw, 400px);
    padding: 4.5vw 0;
    text-align: center;
    width: 25vw;
    height: 15vw;
}
@media (orientation: portrait) {
    .rr-menu li a { font-size: 7vw; padding: 7vw 0; width: 40vw; height: 24vw; }
}
.rr-menu-trigger {
    /* fixed, not absolute like the reference — stays reachable after
       scrolling down a long page instead of scrolling out of view */
    position: fixed;
    top: 20px;
    right: 20px;
    transition: 0.5s;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: cover;
    background-image: url("images/burger.png");
    z-index: 20;
}
.rr-menu-trigger.is-open { background-image: url("images/burger-close.png"); }
.rr-menu-trigger:hover { transform: rotate(180deg); }
@media (max-width: 992px) { .rr-menu-trigger { width: 30px; height: 30px; } }

/* ---- homepage: artist cards + popups ---- */

.rr-artists {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
@media (max-width: 992px) { .rr-artists { min-height: calc(100vh - 150px); } }
.rr-artist { padding: 10px; cursor: pointer; margin: 0; }
.rr-artist img {
    width: 15vw; height: 30vw; max-width: 500px; max-height: 1000px;
    object-fit: cover; transition: 0.5s; display: block;
}
.rr-artist img:hover { transform: scale(1.05, 1.05); }
@media (max-width: 992px) { .rr-artist img { width: 12vw; height: 24vw; } }
@media (min-width: 2000px) { .rr-artist img { width: 20vw; height: 40vw; max-width: 1000px; max-height: 2000px; } }
@media (orientation: portrait) { .rr-artist img { width: 30vw; height: 60vw; } }
.rr-artist figcaption { text-align: center; }
@media (max-width: 992px) { .rr-artist figcaption { font-size: 0.8rem; } }
@media (min-width: 2000px) { .rr-artist figcaption { font-size: 2rem; } }

.rr-inner-box {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #000; opacity: 0.5; display: none; z-index: 8;
}
.rr-inner-box.is-open { display: block; height: 100vh; }

.rr-popup {
    position: fixed;
    max-width: 600px; max-height: 600px;
    width: 90vh; height: 90vh;
    top: 50%; left: 50%;
    border: 10px solid #fff;
    box-shadow: 0 0 25px rgba(0, 0, 0, .6);
    background: url("images/paper.webp");
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transform-origin: center;
    transition: transform 0.35s ease, opacity 0.35s ease;
    overflow: auto;
    pointer-events: none;
    z-index: 9;
}
.rr-popup.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
@media (orientation: portrait) { .rr-popup { width: 90vw; height: 90vw; } }
.rr-popup img { max-width: 580px; width: calc(90vh - 20px); height: auto; display: block; margin: 0 auto; }
@media (orientation: portrait) { .rr-popup img { width: calc(90vw - 20px); } }
.rr-popup-bio { margin-top: 2vh; }
@media (orientation: portrait) { .rr-popup-bio { margin-top: 2vw; } }
/* Reference's own per-paragraph classes, expected directly in a popup
   page's content (migrated musician bios carry them on their 3 stock
   paragraphs: bio text, "Name – role", phone) — unprefixed, matching
   that content verbatim, same as .gallery/.embed_video/.playlist. */
.rr-popup-bio .main_popup_description,
.rr-popup-bio .main_popup_name,
.rr-popup-bio .main_popup_phone {
    padding: 0 2vh;
    margin: 2vh 0;
}
.rr-popup-bio .main_popup_description { text-align: justify; font-size: 3vh; }
.rr-popup-bio .main_popup_name { text-align: center; font-family: "rr-header", cursive; font-size: 4vh; }
.rr-popup-bio .main_popup_phone { text-align: center; font-family: "rr-header", cursive; font-size: 3vh; }
@media (orientation: portrait) {
    .rr-popup-bio .main_popup_description,
    .rr-popup-bio .main_popup_name,
    .rr-popup-bio .main_popup_phone {
        padding: 0 2vw;
        margin: 2vw 0;
    }
    .rr-popup-bio .main_popup_description { font-size: 3vw; }
    .rr-popup-bio .main_popup_name { font-size: 4vw; }
    .rr-popup-bio .main_popup_phone { font-size: 3vw; }
}
@media (min-width: 700px) and (orientation: portrait), (min-height: 700px) and (orientation: landscape) {
    .rr-popup-bio .main_popup_description { font-size: 21px; }
    .rr-popup-bio .main_popup_name { font-size: 28px; }
    .rr-popup-bio .main_popup_phone { font-size: 21px; }
}

/* ---- blog listing ---- */

.rr-entry { margin: 1em 0; }
.rr-entry-body { display: flex; flex-flow: row wrap; gap: 1em; }
.rr-entry-image { position: relative; width: calc(30% - 1em); }
@media (max-width: 768px) { .rr-entry-image { width: 100%; } }
.rr-entry-image::after { content: ""; display: block; padding-bottom: 65%; }
.rr-entry-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,.35); }
.rr-entry-text { width: 70%; text-align: justify; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 768px) { .rr-entry-text { width: 100%; text-align: left; } }
.rr-entry hr { border: 0; height: 1px; background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,.75), rgba(0,0,0,0)); margin: 3em 0; }
@media (max-width: 768px) { .rr-entry hr { margin: 2em 0; } }

.rr-post-image { position: relative; width: 100%; }
.rr-post-image::after { content: ""; display: block; padding-bottom: 60%; }
.rr-post-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,.35); }
.rr-post-details { margin-top: 2em; font-size: 80%; color: #666; }

.rr-pagination { display: flex; justify-content: center; padding: 0.5em; text-align: center; }
.rr-pagination .rr-page { display: inline-block; padding: 10px 20px; border: #666 1px solid; border-right: none; }
.rr-pagination a.rr-page { color: #f7f7f7; background: #333; }
.rr-pagination a.rr-page:hover { background: #222; }
.rr-pagination .rr-page:first-child { border-radius: 5px 0 0 5px; }
.rr-pagination .rr-page:last-child { border-radius: 0 5px 5px 0; border-right: #666 1px solid; }

.rr-tagcloud a { display: inline-block; margin: 0.3em; }
.rr-search-form { position: relative; max-width: 30rem; margin: 0 auto 1em; }
.rr-search-form input { width: 100%; padding: 0.6em 1em; font-size: 1rem; border: 1px solid #999; background: #fff; }
.rr-search-result p { display: flex; align-items: center; gap: 0.5em; }
.rr-search-result img { width: 40px; height: 40px; object-fit: cover; }

.rr-btn { display: inline-block; padding: 0.6em 1.4em; background: #333; color: #f7f7f7; }
.rr-btn:hover { background: #222; color: #f7f7f7; }

.rr-comments { margin-top: 2em; }
.rr-comment { margin-bottom: 1em; padding: 0.8em; background: rgba(255,255,255,.5); }
.rr-comment-form input, .rr-comment-form textarea { display: block; width: 100%; margin-bottom: 0.6em; padding: 0.5em; border: 1px solid #999; font-family: inherit; }
.rr-comment-form button { padding: 0.5em 1.2em; }

/* ---- footer ---- */

.rr-footer {
    font-family: "rr-header", cursive;
    font-size: 0.8rem;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    clear: both;
}
@media (max-width: 992px) { .rr-footer { height: 50px; font-size: 0.6rem; } }

/* ================================================================
   Unprefixed classes below match markup already baked into migrated
   content (photo/video/music pages) — do not rename.
   ================================================================ */

.gallery {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% + 1rem);
    margin-bottom: -1rem;
}
.gallery.columns-1 a, .gallery.columns-1 figure { width: calc(100% - 1rem); }
.gallery.columns-2 > a, .gallery.columns-2 > figure { width: calc(50% - 1rem); max-width: calc(50% - 1rem); }
.gallery.columns-3 a, .gallery.columns-3 figure { width: calc(33.3% - 1rem); }
.gallery.columns-4 a, .gallery.columns-4 figure { width: calc(25% - 1rem); }
.gallery a { margin: 0 1rem 1rem 0; display: block; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure { margin: 0 1rem 1rem 0; }
.gallery figure a { margin: 0; }

.full-image figure img { filter: none; }

.video_frame {
    display: grid;
    grid-gap: 0.5rem;
    grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 992px) { .video_frame { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .video_frame { grid-template-columns: 1fr; } }

.embed_video {
    position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
}
.embed_video:before { padding-top: 56.25%; display: block; content: ""; box-sizing: border-box; }
.embed_video .ytcover {
    width: 100%; height: 100%; position: absolute; top: 0;
    display: flex; flex-flow: column nowrap; justify-content: space-evenly; align-items: center;
    background: #eee; padding: 1em;
}
.embed_video .ytcover p { text-align: center; }
.embed_video .ytcover img { width: auto; height: 25%; object-fit: cover; }
.embed_video iframe {
    position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0;
    opacity: 0; transition: opacity 2.4s ease 0s;
}

.playlist { margin-bottom: 1em; padding: 0.5em; background: rgba(255,255,255,.7); }
.playlist audio { display: block; width: 100%; background: transparent; }
.playlist ul { margin: 1em 0 1em 0.7em; padding: 0; list-style-type: none; }
.playlist ul li { padding: 0 0.3em; }
.playlist ul li:nth-child(odd) { background: rgba(247,247,247,.7); }
.playlist ul li:nth-child(even) { background: rgba(241,241,241,.7); }
.playlist ul li:hover { background: rgba(250,250,250,.9); }
.playlist ul li.active { list-style-type: "\1D11E"; background: rgba(253,253,253,.9); }
.playlist ul li a { display: block; color: #333; }

/* ---- baguetteBox.js lightbox (bundled unminified copy of its own CSS) ---- */
#baguetteBox-overlay { display: none; opacity: 0; position: fixed; overflow: hidden; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000000; background-color: rgba(0,0,0,.8); transition: opacity .5s ease; }
#baguetteBox-overlay.visible { opacity: 1; }
#baguetteBox-overlay .full-image { display: inline-block; position: relative; width: 100%; height: 100%; text-align: center; }
#baguetteBox-overlay .full-image figure { display: inline; margin: 0; height: 100%; }
#baguetteBox-overlay .full-image img { display: inline-block; width: auto; height: auto; max-height: 100%; max-width: 100%; vertical-align: middle; box-shadow: 0 0 8px rgba(0,0,0,.6); filter: none; }
#baguetteBox-overlay .full-image figcaption { display: block; position: absolute; bottom: 0; width: 100%; text-align: center; line-height: 1.8; white-space: normal; color: #ccc; background-color: rgba(0,0,0,.6); font-family: sans-serif; }
#baguetteBox-overlay .full-image:before { content: ""; display: inline-block; height: 50%; width: 1px; margin-right: -1px; }
#baguetteBox-slider { position: absolute; left: 0; top: 0; height: 100%; width: 100%; white-space: nowrap; transition: left .4s ease, transform .4s ease; }
.baguetteBox-button#next-button, .baguetteBox-button#previous-button { top: calc(50% - 30px); width: 44px; height: 60px; }
.baguetteBox-button { position: absolute; cursor: pointer; outline: none; padding: 0; margin: 0; border: 0; border-radius: 15%; background-color: rgba(50,50,50,.5); color: #ddd; font: 1.6em sans-serif; transition: background-color .4s ease; }
.baguetteBox-button:focus, .baguetteBox-button:hover { background-color: rgba(50,50,50,.9); }
.baguetteBox-button#next-button { right: 2%; }
.baguetteBox-button#previous-button { left: 2%; }
.baguetteBox-button#close-button { top: 20px; right: calc(2% + 6px); width: 30px; height: 30px; }
.baguetteBox-button svg { position: absolute; left: 0; top: 0; }
.baguetteBox-spinner { width: 40px; height: 40px; display: inline-block; position: absolute; top: 50%; left: 50%; margin-top: -20px; margin-left: -20px; }
.baguetteBox-double-bounce1, .baguetteBox-double-bounce2 { width: 100%; height: 100%; border-radius: 50%; background-color: #fff; opacity: .6; position: absolute; top: 0; left: 0; animation: rr-bounce 2s infinite ease-in-out; }
.baguetteBox-double-bounce2 { animation-delay: -1s; }
@keyframes rr-bounce { 0%, 100% { transform: scale(0); } 50% { transform: scale(1); } }
