/*
Theme Name: Rasolution
Theme URI: https://rasolution.it/
Author: Andreas Rassele
Description: Lean, photo-first theme for Rasolution Photography. Keeps the existing albums (portfolio items) and all their photos, shows them as a masonry gallery with a full-screen lightbox, no filters. Works without page builders; fonts are stored locally on the server.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rasolution
*/

/* Layout: one centered 1320px column, full-bleed hero on the front page, everything else calm and light. */
:root {
	color-scheme: dark;
	--rs-bg: #121415;
	--rs-band: #1A1D1F;
	--rs-ink: #ECEEEC;
	--rs-text: #C3C8C6;
	--rs-muted: #8D9599;
	--rs-line: #2A2F31;
	--rs-accent: #EF4B4B;
	--rs-accent-strong: #C8312F;
	--rs-dark: #0B0C0D;
	--rs-light: #F3F4F2;
	--rs-ph: #23282A;
	--rs-field: #1A1D1F;
	--rs-field-line: #3A4144;
	--rs-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--rs-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--rs-wrap: 1320px;
	--rs-gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--rs-bg);
	color: var(--rs-ink);
	font-family: var(--rs-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rs-ink); text-decoration: none; }
a:hover { color: var(--rs-accent); }
:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--rs-bg); padding: 10px 14px; }

.rs-wrap { max-width: var(--rs-wrap); margin: 0 auto; padding-left: var(--rs-gutter); padding-right: var(--rs-gutter); }

/* ---------- Header ---------- */
.rs-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--rs-gutter); border-bottom: 1px solid var(--rs-line); position: relative; z-index: 20; }
.rs-header--over { position: absolute; top: 0; left: 0; right: 0; border-bottom: 0; color: var(--rs-light); }
.admin-bar .rs-header--over { top: 32px; }
@media (max-width: 782px) { .admin-bar .rs-header--over { top: 46px; } }
.rs-brand { display: flex; flex-direction: column; line-height: 1; color: inherit; }
.rs-brand:hover { color: inherit; }
.rs-brand__name { font-family: var(--rs-display); font-stretch: 125%; font-weight: 600; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; }
.rs-brand__sub { font-family: var(--rs-display); font-weight: 400; font-size: 11px; letter-spacing: .42em; margin-top: 6px; text-transform: uppercase; }
.rs-brand img { max-height: 56px; width: auto; }

.rs-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.rs-nav a { color: inherit; font-size: 14px; letter-spacing: .06em; }
.rs-nav a:hover { text-decoration: underline; text-underline-offset: 6px; color: inherit; }
.rs-nav .current-menu-item > a, .rs-nav .current_page_item > a, .rs-nav .current-menu-ancestor > a, .rs-nav .is-current > a { color: var(--rs-accent); }
.rs-header--over .rs-nav .current-menu-item > a, .rs-header--over .rs-nav .current_page_item > a, .rs-header--over .rs-nav .is-current > a { color: inherit; text-decoration: underline; text-underline-offset: 6px; }
.rs-nav .rs-icon-link { display: flex; }
.rs-menu-toggle { display: none; background: transparent; border: 0; color: inherit; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; padding: 0; }

@media (max-width: 860px) {
	.rs-menu-toggle { display: flex; }
	.rs-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--rs-bg); color: var(--rs-ink); border-bottom: 1px solid var(--rs-line); padding: 8px var(--rs-gutter) 24px; }
	.rs-nav.is-open { display: block; }
	.rs-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
	.rs-nav a { display: block; padding: 10px 0; font-size: 18px; }
}

/* ---------- Type ---------- */
.rs-h1, .rs-h2, .entry-content h1, .entry-content h2 { font-family: var(--rs-display); font-stretch: 75%; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
.rs-h1 { font-size: clamp(48px, 7vw, 96px); line-height: .95; letter-spacing: -.015em; }
.rs-h2 { font-size: 40px; line-height: 1.02; }
.rs-eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.rs-label { font-family: var(--rs-display); font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.rs-more { font-size: 14px; letter-spacing: .06em; color: var(--rs-accent); }
.rs-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border: 1px solid var(--rs-ink); background: transparent; color: var(--rs-ink); font: inherit; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.rs-btn:hover { background: var(--rs-ink); color: var(--rs-bg); }
.rs-btn--solid { background: var(--rs-accent-strong); border-color: var(--rs-accent-strong); color: #FFFFFF; }
.rs-btn--solid:hover { background: var(--rs-ink); border-color: var(--rs-ink); color: var(--rs-bg); }
.rs-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.rs-main { padding-top: 80px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.rs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rs-head p { margin: 0; font-size: 14px; color: var(--rs-muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* ---------- Front page ---------- */
.rs-hero { position: relative; height: 52rem; max-height: 100vh; min-height: 30rem; background: var(--rs-ph); color: var(--rs-light); overflow: hidden; }
.rs-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,20,21,.45) 0%, rgba(18,20,21,0) 22%, rgba(18,20,21,0) 55%, rgba(18,20,21,.55) 100%); pointer-events: none; }
.rs-hero__text { position: absolute; z-index: 2; left: var(--rs-gutter); right: var(--rs-gutter); bottom: 56px; max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.rs-hero__title { margin: 0; font-family: var(--rs-display); font-stretch: 75%; font-weight: 500; font-size: clamp(40px, 6vw, 84px); line-height: .98; text-wrap: balance; }
.rs-hero__sub { margin: 0; font-size: 15px; letter-spacing: .04em; opacity: .9; }

.rs-strip { padding-top: 96px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 28px; }
.rs-strip__item { position: relative; display: block; }
.rs-strip__item img { width: 100%; }
.rs-strip__cap { position: absolute; right: 18px; bottom: 18px; font-family: var(--rs-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #F3F4F2; background: rgba(18,20,21,.45); padding: 6px 10px; opacity: 0; transition: opacity .25s; }
.rs-strip__item:hover .rs-strip__cap, .rs-strip__item:focus-visible .rs-strip__cap { opacity: 1; }

.rs-section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.rs-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rs-line); padding-top: 20px; }
.rs-band { background: var(--rs-band); }
.rs-intro { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.rs-intro p { margin: 0 0 22px; max-width: 34em; color: var(--rs-text); }

/* ---------- Album grid ---------- */
.rs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rs-card { position: relative; display: block; aspect-ratio: 1 / 1; max-width: 100%; overflow: hidden; background: var(--rs-ph); color: var(--rs-light); }
.rs-card:hover, .rs-card:focus-visible { color: var(--rs-light); }
.rs-card__img { position: absolute; inset: 0; }
.rs-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rs-card::after { content: ""; position: absolute; inset: 0; background: rgba(11,12,13,.42); transition: background .3s; pointer-events: none; }
.rs-card .rs-label { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-family: var(--rs-display); font-stretch: 75%; font-weight: 500; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: .01em; text-transform: none; text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.rs-card:hover::after, .rs-card:focus-visible::after { background: rgba(11,12,13,.22); }
.rs-card:hover .rs-card__img img { transform: scale(1.04); }
@media (max-width: 1000px) { .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .rs-grid { grid-template-columns: 1fr; } .rs-intro { grid-template-columns: 1fr; } }

/* ---------- Album detail ---------- */
.rs-back { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--rs-muted); }
.rs-album-text { max-width: 40em; color: var(--rs-text); }
.rs-album-text > :first-child { margin-top: 0; }
.rs-masonry { column-count: 3; column-gap: 20px; }
.rs-shot { display: block; width: 100%; margin: 0 0 20px; padding: 0; border: 0; background: var(--rs-ph); cursor: zoom-in; break-inside: avoid; }
.rs-shot img { width: 100%; transition: filter .2s; }
.rs-shot:hover img { filter: brightness(.9); }
@media (max-width: 1000px) { .rs-masonry { column-count: 2; } }
@media (max-width: 620px) { .rs-masonry { column-count: 1; } }
.rs-pager { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--rs-line); padding-top: 24px; }
.rs-pager a { display: flex; flex-direction: column; gap: 2px; }
.rs-pager a:last-child { text-align: right; margin-left: auto; }
.rs-pager span:last-child { font-family: var(--rs-display); font-stretch: 75%; font-size: 28px; font-weight: 500; }

/* ---------- Lightbox ---------- */
.rs-lb { position: fixed; inset: 0; z-index: 1000; background: var(--rs-dark); color: var(--rs-light); display: flex; flex-direction: column; }
.rs-lb[hidden] { display: none; }
.rs-lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(16px, 3vw, 32px); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.rs-lb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 clamp(8px, 2vw, 24px) 24px; }
.rs-lb__img { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.rs-lb__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.rs-lb__btn { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid rgba(243,244,242,.35); background: transparent; color: var(--rs-light); cursor: pointer; border-radius: 50%; }
.rs-lb__btn:hover { background: rgba(243,244,242,.12); }
.rs-lb__btn:focus-visible { outline-color: var(--rs-light); }
@media (max-width: 620px) { .rs-lb__stage .rs-lb__btn { display: none; } }
body.rs-lb-open { overflow: hidden; }

/* ---------- Journal ---------- */
.rs-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.rs-feature__img, .rs-row__img { aspect-ratio: 3 / 2; background: var(--rs-ph); overflow: hidden; }
.rs-feature__img img, .rs-row__img img { width: 100%; height: 100%; object-fit: cover; }
.rs-feature h2 { font-family: var(--rs-display); font-stretch: 75%; font-weight: 500; font-size: 48px; line-height: 1; margin: 0; text-wrap: balance; }
.rs-feature__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rs-feature__body p { margin: 0; color: var(--rs-text); max-width: 32em; }
.rs-rows { border-top: 1px solid var(--rs-line); }
.rs-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 180px; gap: 32px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--rs-line); }
.rs-row__title { font-family: var(--rs-display); font-stretch: 75%; font-weight: 500; font-size: 30px; line-height: 1.05; }
@media (max-width: 760px) { .rs-feature, .rs-row { grid-template-columns: 1fr; gap: 14px; } }
.rs-pagination { display: flex; gap: 16px; justify-content: center; }
.rs-pagination .page-numbers { padding: 8px 12px; }
.rs-pagination .current { color: var(--rs-accent); }

/* ---------- Single post / page ---------- */
.rs-article { max-width: 820px; margin: 0 auto; }
.rs-article__hero { margin-bottom: 40px; }
.entry-content { font-size: 18px; color: var(--rs-text); }
.entry-content > * { max-width: 100%; }
.entry-content p, .entry-content ul, .entry-content ol { max-width: 38em; }
.entry-content h2 { font-size: 36px; margin: 48px 0 16px; color: var(--rs-ink); }
.entry-content h3 { font-family: var(--rs-display); font-size: 22px; margin: 32px 0 12px; color: var(--rs-ink); }
.entry-content a { color: var(--rs-accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content figure { margin: 32px 0; }
.entry-content .wp-block-gallery { gap: 16px; }
.entry-content figcaption { font-size: 13px; color: var(--rs-muted); margin-top: 8px; }
.alignwide { max-width: var(--rs-wrap); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.rs-page-wide .entry-content p { max-width: 38em; }

/* ---------- Contact ---------- */
.rs-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
.rs-contact__side { display: flex; flex-direction: column; gap: 24px; }
.rs-contact__side p { margin: 0; max-width: 26em; color: var(--rs-text); }
.rs-contact__links { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rs-line); padding-top: 20px; }
.rs-contact__links a { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.rs-form { display: flex; flex-direction: column; gap: 20px; }
.rs-form__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rs-field { display: flex; flex-direction: column; gap: 6px; }
.rs-field label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--rs-muted); }
.rs-field input, .rs-field select, .rs-field textarea { font: inherit; color: var(--rs-ink); background: var(--rs-field); border: 1px solid var(--rs-field-line); border-radius: 0; padding: 12px 14px; min-height: 46px; width: 100%; }
.rs-field input:focus, .rs-field select:focus, .rs-field textarea:focus { outline: 2px solid var(--rs-accent); outline-offset: 0; border-color: var(--rs-accent); }
.rs-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--rs-muted); }
.rs-consent input { margin-top: 4px; width: 18px; height: 18px; }
.rs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rs-notice { padding: 24px 28px; background: var(--rs-band); }
.rs-notice--error { background: #3A1E1A; color: #F2C4BC; }
@media (max-width: 760px) { .rs-contact, .rs-form__two { grid-template-columns: 1fr; gap: 40px; } .rs-form__two { gap: 20px; } }

/* ---------- Footer ---------- */
.rs-footer { border-top: 1px solid var(--rs-line); }
.rs-footer .rs-wrap { padding-top: 36px; padding-bottom: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--rs-muted); }
.rs-footer a { color: var(--rs-muted); }
.rs-footer a:hover { color: var(--rs-ink); }
.rs-footer__links, .rs-footer-menu { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Front page slideshow (full screen, nothing below) ---------- */
.rs-front .rs-footer { display: none; }
.rs-show { position: relative; height: 100vh; height: 100svh; min-height: 420px; background: var(--rs-dark); color: var(--rs-light); overflow: hidden; }
.admin-bar .rs-show { height: calc(100vh - 32px); height: calc(100svh - 32px); }
.rs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.rs-slide.is-active { opacity: 1; }
.rs-slide img { width: 100%; height: 100%; object-fit: cover; }
.rs-show::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,13,.45) 0%, rgba(11,12,13,0) 18%, rgba(11,12,13,0) 82%, rgba(11,12,13,.3) 100%); pointer-events: none; z-index: 1; }
.rs-show .rs-hero__text { z-index: 2; bottom: 96px; }
.rs-show__ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; }
.rs-dot { width: 32px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rs-dot span { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(243,244,242,.4); transition: background .3s, transform .3s; }
.rs-dot:hover span { background: rgba(243,244,242,.8); }
.rs-dot.is-active span { background: var(--rs-accent); transform: scale(1.35); }
.rs-dot:focus-visible { outline: 1px solid #F3F4F2; outline-offset: -6px; }
.rs-show__legal { position: absolute; z-index: 3; right: var(--rs-gutter); bottom: 38px; display: flex; gap: 16px; font-size: 12px; letter-spacing: .06em; }
.rs-show__legal a { color: rgba(243,244,242,.8); }
.rs-show__legal a:hover { color: #F3F4F2; }
@media (max-width: 620px) { .rs-show__legal { left: 0; right: 0; justify-content: center; bottom: 4px; } .rs-show__ui { bottom: 26px; } }

/* ---------- About ---------- */
.rs-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.rs-about__img { aspect-ratio: 4 / 5; background: var(--rs-ph); overflow: hidden; }
.rs-about__img img { width: 100%; height: 100%; object-fit: cover; }
.rs-about__body { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.rs-about__text { font-size: 18px; color: var(--rs-text); max-width: 34em; }
.rs-about__text p { margin: 0 0 16px; }
.rs-about__text p:last-child { margin-bottom: 0; }
.rs-btn svg { flex: none; }
@media (max-width: 760px) { .rs-about { grid-template-columns: 1fr; gap: 36px; } }
.rs-article + .rs-masonry { margin-top: 8px; }

/* ---------- Instagram feed (Smash Balloon) in the dark theme ---------- */
.rs-insta__feed #sb_instagram { padding-bottom: 0 !important; background: transparent !important; }
.rs-insta__feed #sb_instagram .sb_instagram_header, .rs-insta__feed #sb_instagram .sbi_header_text { display: none !important; }
.rs-insta__feed #sb_instagram #sbi_images { padding: 0 !important; gap: 12px; }
.rs-insta__feed #sb_instagram .sbi_photo_wrap { background: var(--rs-ph); }
.rs-insta__feed #sb_instagram .sbi_follow_btn a, .rs-insta__feed #sb_instagram #sbi_load .sbi_load_btn { background: transparent !important; color: var(--rs-ink) !important; border: 1px solid var(--rs-ink) !important; border-radius: 0 !important; box-shadow: none !important; font-family: var(--rs-body) !important; font-size: 13px !important; letter-spacing: .08em; text-transform: uppercase; padding: 12px 22px !important; }
.rs-insta__feed #sb_instagram .sbi_follow_btn a:hover, .rs-insta__feed #sb_instagram #sbi_load .sbi_load_btn:hover { background: var(--rs-ink) !important; color: var(--rs-bg) !important; }
.rs-insta__feed #sb_instagram .sbi_follow_btn svg { display: none; }
