/*
Theme Name: Helligrafie Weddings
Description: Editorial-Block-Theme für die Hochzeitsfotografie von Helena Ostlender.
Version: 1.3.2
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: helligrafie
*/

:root {
    --hg-ink: #322b24;
    --hg-paper: #fffcf7;
    --hg-serif: "Cormorant Garamond", Georgia, serif;
    --hg-body: "DM Sans", Arial, sans-serif;
    --hg-script: Explora, "Cormorant Garamond", Georgia, cursive;
    --hg-gutter: clamp(1.25rem, 6vw, 8rem);
}
html { scroll-behavior: smooth; }
body { margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
:where(.hg-masthead,.hg-hero,.hg-welcome,.hg-feature,.hg-contact,.hg-footer) :is(p,h1,h2,figure) { margin: 0; }
:where(.hg-masthead,.hg-welcome,.hg-feature,.hg-contact,.hg-footer) a:focus-visible,
.hg-hero a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.hg-masthead { background: var(--hg-paper); border-top: 4px solid #cbbca9; position: relative; z-index: 4; }
.hg-header-inner { max-width: 108rem; margin: auto; min-height: 5.15rem; padding: .7rem var(--hg-gutter); display: flex; gap: clamp(1rem,3.6vw,4rem); align-items: center; }
.hg-wordmark { margin-right: auto !important; }
.hg-wordmark a { display: flex; gap: .8rem; align-items: center; color: var(--hg-ink); text-decoration: none; }
.hg-wordmark span,.hg-foot-name { font-family: var(--hg-serif); font-style: italic; font-size: 2.6rem; letter-spacing: -.065em; line-height: 1; }
.hg-wordmark small { font: 500 .64rem/1 var(--hg-body); text-transform: uppercase; letter-spacing: .19em; border-left: 1px solid #cbbca9; padding: .35rem 0 .35rem .85rem; }
.hg-header-inner .wp-block-navigation { font-size: .94rem; }
.hg-header-inner .wp-block-navigation__container { gap: clamp(1rem,2.75vw,3rem); }
.hg-header-inner .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: .38em; }
:is(.hg-masthead,.hg-welcome,.hg-feature,.hg-contact) .wp-block-button__link {
    background: #49392c; color: #fffdf7; border: 1px solid #49392c; border-radius: 0;
    font: 500 .9rem/1.25 var(--hg-body); padding: .9rem 1.65rem; text-decoration: none; transition: background .18s,color .18s;
}
:is(.hg-masthead,.hg-welcome,.hg-feature,.hg-contact) .wp-block-button__link:hover { color: #fff; background: #30261e; }
.hg-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(25rem,36.5vw,43rem); overflow: hidden; background: #514139; color: #fffaf2; }
.hg-hero-photo { position: absolute; inset: 0; z-index: -2; }
.hg-hero-photo img,.hg-feature-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hg-hero-photo img { object-position: 55% 49%; }
.hg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(39,27,22,.68),rgba(39,27,22,.47) 32%,rgba(39,27,22,.09) 67%,transparent); }
.hg-hero-copy { padding: clamp(2.6rem,4.5vw,6rem) var(--hg-gutter); }
.hg-eyebrow { display: flex; align-items: center; gap: .85rem; font: 500 .76rem/1.4 var(--hg-body); letter-spacing: .19em; text-transform: uppercase; }
.hg-eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.hg-hero h1 { font: 500 clamp(4rem,6.7vw,7.6rem)/.91 var(--hg-serif); letter-spacing: -.05em; margin-block: 1.15rem 1.1rem; }
.hg-hero h1 em { font-weight: 500; }
.hg-signature,.hg-script { font-family: var(--hg-script); font-weight: 400; font-size: clamp(2.2rem,3vw,3.3rem); line-height: 1; }
.hg-signature { color: #fff8eb; }
.hg-welcome,.hg-contact { text-align: center; padding: clamp(3.2rem,5.2vw,6rem) var(--hg-gutter); }
.hg-script { color: #876c52; margin-bottom: .5rem !important; }
:is(.hg-welcome,.hg-contact,.hg-feature) h2 { font: 500 clamp(2.6rem,4.1vw,4.6rem)/1 var(--hg-serif); letter-spacing: -.045em; }
.hg-welcome p:not(.hg-script),.hg-feature-card p { color: #584f46; line-height: 1.75; }
.hg-welcome p:not(.hg-script) { max-width: 40rem; margin: 1.2rem auto 1.55rem; }
:is(.hg-welcome,.hg-contact,.hg-feature-card) .wp-block-buttons { justify-content: center; }
.hg-feature { position: relative; isolation: isolate; display: grid; align-items: center; grid-template-columns: repeat(12,minmax(0,1fr)); padding: 1.4rem 0; margin: clamp(2.4rem,5vw,5.5rem) auto; max-width: 108rem; }
.hg-feature::before { content: ""; grid-area: 1/1/2/-1; background: #e7ddd0; height: 74%; z-index: -1; }
.hg-feature-photo { grid-row: 1; grid-column: 6/-1; height: clamp(16rem,29vw,32rem); }
.hg-feature-photo img { object-position: center 54%; }
#ueber-mich .hg-feature-photo img { object-position: center 57%; }
.hg-feature-card { position: relative; text-align: center; grid-row: 1; grid-column: 2/7; padding: clamp(2.2rem,4vw,4.5rem); background: #ede5d9; }
.hg-feature-card p,.hg-feature-card .wp-block-buttons { margin-top: 1.4rem; }
.hg-right .hg-feature-photo { grid-column: 1/8; }
.hg-right .hg-feature-card { grid-column: 7/12; background: #e4d9ca; }
.hg-feature-card .hg-bouquet { margin: 1.25rem auto; max-width: 21rem; }
.hg-bouquet img { width: 100%; aspect-ratio: 2.5; object-fit: cover; display: block; }
.hg-feature-card .wp-block-button__link { color: var(--hg-ink); background: transparent; border-color: #8c7a66; }
.hg-quote { font-family: var(--hg-serif); font-size: 1.45rem; line-height: 1.35 !important; }
.hg-contact { padding-block: clamp(4rem,7vw,8rem); }
.hg-contact .wp-block-buttons { margin-top: 1.75rem; }
.hg-footer { padding: 3.8rem var(--hg-gutter); background: #e2d7c8; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; color: #3b3026; }
.hg-foot-brand p+p { margin-top: .7rem; }
.hg-foot-label { font-weight: 500; margin-bottom: .5rem !important; }
.hg-footer a { text-underline-offset: .22em; }

.hg-portfolio {
    padding: clamp(2rem, 3.75vw, 3.5rem) var(--hg-gutter) clamp(3rem, 7vw, 7rem);
    background: #e9dfd1;
}
.hg-portfolio .hg-portfolio-title {
    margin: 0 0 clamp(1.4rem, 3vw, 2.5rem);
    color: var(--hg-ink);
    font: 500 clamp(3.9rem, 7.5vw, 7.25rem)/.94 var(--hg-serif);
    letter-spacing: -.055em;
    text-align: center;
}
.hg-portfolio-sheet {
    max-width: 83rem;
    margin-inline: auto;
    padding: clamp(1.15rem, 2.7vw, 2.5rem) clamp(.7rem, 4vw, 4rem) clamp(1.65rem, 4.5vw, 4rem);
    background: var(--hg-paper);
    border-top: 1px solid #cdbba7;
}
.hg-portfolio-subtitle {
    margin: 0 0 clamp(1.15rem, 2.75vw, 2.55rem);
    text-align: center;
    text-transform: uppercase;
    font: 500 .875rem/1.5 var(--hg-body);
    letter-spacing: .15em;
}
.wp-block-gallery.hg-portfolio-gallery.has-nested-images {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(.55rem, 2.3vw, 2rem);
    margin: 0;
}
.wp-block-gallery.hg-portfolio-gallery.has-nested-images > figure.wp-block-image {
    grid-column: span 6;
    width: 100% !important;
    margin: 0;
}
.wp-block-gallery.hg-portfolio-gallery.has-nested-images > .wp-block-image:nth-child(5n+1) {
    grid-column: span 5;
    margin-top: clamp(1.25rem, 4vw, 4rem) !important;
}
.wp-block-gallery.hg-portfolio-gallery.has-nested-images > .wp-block-image:nth-child(5n+2) {
    grid-column: span 7;
}
.wp-block-gallery.hg-portfolio-gallery.has-nested-images > .wp-block-image:nth-child(5n+3) {
    grid-column: 1 / -1;
}
.wp-block-gallery.hg-portfolio-gallery.has-nested-images > .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 54%;
}
.wp-block-gallery.hg-portfolio-gallery.has-nested-images > .wp-block-image:nth-child(5n+1) img {
    aspect-ratio: 5 / 4;
}
.wp-block-gallery.hg-portfolio-gallery.has-nested-images > .wp-block-image:nth-child(5n+2) img {
    aspect-ratio: 1 / 1;
}
.wp-block-gallery.hg-portfolio-gallery.has-nested-images > .wp-block-image:nth-child(5n+3) img {
    aspect-ratio: 8 / 5;
    object-position: center 44%;
}
.hg-portfolio-gallery .lightbox-trigger:focus-visible {
    outline: 2px solid var(--hg-paper);
    outline-offset: 2px;
}

.hg-subpage {
    --hg-page-width: 72rem;
    --hg-page-space: clamp(3rem, 6vw, 6rem);
    --hg-sand: #e9dfd1;
}
.hg-subpage :is(h1, h2, h3, p, figure) { margin: 0; }
.hg-subpage h1 { font-size: clamp(3.5rem, 8vw, 7.4rem); letter-spacing: -.045em; }
.hg-subpage h2 { font-size: clamp(2.5rem, 5vw, 4.75rem); letter-spacing: -.035em; }
.hg-subpage h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.hg-subpage-heading {
    background: var(--hg-sand);
    padding: clamp(2.8rem, 5vw, 5rem) var(--hg-gutter);
    text-align: center;
}
.hg-subpage .hg-subpage-label {
    margin-bottom: .8rem;
    color: #5c493b;
    font: 500 .875rem/1.5 var(--hg-body);
    text-transform: uppercase;
    letter-spacing: .15em;
}
.hg-subpage .wp-block-buttons { justify-content: center; }
.hg-subpage :is(.wp-block-button__link, .hg-form button) {
    background: #49392c;
    color: #fffdf7;
    border: 1px solid #49392c;
    border-radius: 0;
    padding: .9rem 1.65rem;
    font: 500 .9rem/1.25 var(--hg-body);
}
.hg-subpage :is(.wp-block-button__link, .hg-form button):hover { background: #30261e; }
.hg-subpage :is(a, button, input, textarea):focus-visible { outline: 2px solid #795640; outline-offset: 3px; }
.hg-about-portrait, .hg-services-photo, .hg-review-photo {
    width: min(calc(100% - 2 * var(--hg-gutter)), var(--hg-page-width));
    margin-inline: auto !important;
}
.hg-subpage :is(.hg-about-portrait, .hg-services-photo, .hg-review-photo) img {
    display: block;
    width: 100%;
    height: auto;
}
.hg-subpage :is(.hg-about-portrait, .hg-services-photo) { margin-top: clamp(1.5rem, 4vw, 4rem); }
.hg-about-portrait img { max-height: 37rem; object-fit: cover; object-position: center 38%; }
.hg-about-copy {
    display: grid;
    gap: 1.9rem;
    max-width: 48rem;
    margin: auto;
    padding: clamp(2rem, 5vw, 4.5rem) var(--hg-gutter) var(--hg-page-space);
    text-align: center;
}
.hg-about-copy > h2 {
    font-family: var(--hg-script);
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 400;
    letter-spacing: 0;
    color: #74543e;
}
.hg-bio h3, .hg-service h3 { margin-bottom: .5rem; }
.hg-instagram, .hg-price-section {
    text-align: center;
    background: var(--hg-sand);
    padding: var(--hg-page-space) var(--hg-gutter);
}
.wp-block-gallery.hg-instagram-gallery.has-nested-images {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(13rem, 26vw, 22rem);
    gap: 1rem;
    max-width: var(--hg-page-width);
    margin: 2rem auto;
    padding-bottom: .65rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.wp-block-gallery.hg-instagram-gallery.has-nested-images > figure.wp-block-image {
    width: 100% !important;
    margin: 0;
    scroll-snap-align: start;
}
.wp-block-gallery.hg-instagram-gallery.has-nested-images > .wp-block-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.hg-services-photo img { max-height: 26rem; object-fit: cover; object-position: center 51%; }
.hg-service-section { text-align: center; padding: var(--hg-page-space) var(--hg-gutter); }
.hg-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
    gap: 1rem;
    max-width: var(--hg-page-width);
    margin: 2rem auto 0;
}
.hg-service {
    background: #f3ebdf;
    padding: clamp(1.4rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem);
}
.hg-service h3 { font-size: clamp(1.65rem, 2.6vw, 2.15rem); hyphens: auto; overflow-wrap: anywhere; }
.hg-price-section h2 + p { max-width: 39rem; margin: 1rem auto 1.6rem; }
.hg-contact-page { background: #eee4d8; }
.hg-inquiry {
    width: min(calc(100% - 2 * var(--hg-gutter)), 50rem);
    margin: auto;
    padding: clamp(2rem, 5vw, 4rem) 0 var(--hg-page-space);
}
.hg-inquiry h2, .hg-inquiry > p, .hg-reviews-section > h2 { text-align: center; }
.hg-inquiry h2 + p { margin: 1rem auto 1.9rem; max-width: 39rem; }
.hg-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    padding: clamp(1.2rem, 4vw, 2.6rem);
    background: var(--hg-paper);
}
.hg-form label { font-weight: 500; }
.hg-form :is(input:not([type="hidden"]), textarea) {
    display: block;
    width: 100%;
    padding: .7rem .8rem;
    margin-top: .4rem;
    border: 1px solid #a48f7a;
    border-radius: 0;
    color: var(--hg-ink);
    background: #fff;
    font: 400 1rem/1.45 var(--hg-body);
}
.hg-form textarea { resize: vertical; }
.hg-form button { cursor: pointer; }
.hg-form-wide { grid-column: 1 / -1; }
.hg-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.hg-form-actions p { color: #675648; font-size: .9rem; }
.hg-form-trap { display: none; }
.hg-subpage .hg-form-notice { padding: 1rem; background: var(--hg-paper); margin-bottom: 1rem; }
.hg-subpage .hg-contact-email { margin-top: 1rem; overflow-wrap: anywhere; }
.hg-reviews-section { padding-bottom: var(--hg-page-space); }
.hg-review-list {
    width: min(calc(100% - 2 * var(--hg-gutter)), 50rem);
    margin: 2rem auto clamp(2rem, 5vw, 4rem);
    display: grid;
    gap: 1.2rem;
}
.hg-review-list blockquote {
    margin: 0;
    background: var(--hg-paper);
    padding: clamp(1.2rem, 3vw, 2.5rem);
    border-left: .2rem solid #ab8f75;
    font-size: 1.05rem;
}

.hg-legal-copy {
    max-width: 47rem;
    margin-inline: auto;
    padding: var(--hg-page-space) var(--hg-gutter);
    overflow-wrap: anywhere;
}
.hg-legal-copy h2 {
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #d5c6b5;
    font-size: clamp(1.85rem, 3.6vw, 2.65rem);
}
.hg-legal-copy p + h2 { margin-top: 2.1rem; }
.hg-legal-copy p + p { margin-top: .8rem; }
.hg-legal-copy a { text-underline-offset: .2em; }
.hg-foot-label ~ p { margin-top: .35rem; }

@media(max-width: 740px) {
    .hg-header-inner { min-height: 4.2rem; gap: 1.1rem; }
    .hg-wordmark span { font-size: 2.05rem; }
    .hg-wordmark small { display: none; }
    .hg-header-inner .wp-block-buttons { order: 1; }
    .hg-header-inner .wp-block-navigation { order: 2; }
    .hg-header-inner .wp-block-button__link { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem .95rem; }
    .hg-header-inner :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
    .hg-header-inner .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
    .hg-header-inner .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
    .hg-header-inner .wp-block-navigation__responsive-container.is-menu-open { padding: 1.75rem; }
    .hg-header-inner .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: .35rem; }
    .hg-header-inner .is-menu-open .wp-block-navigation-item__content { display: flex; align-items: center; min-height: 44px; }
    .wp-lightbox-overlay :is(.wp-lightbox-close-button, .wp-lightbox-navigation-button) { min-height: 44px; min-width: 44px; }
    .hg-hero { min-height: 25rem; align-items: end; }
    .hg-hero::before { background: linear-gradient(0deg,rgba(39,27,22,.75),rgba(39,27,22,.32) 52%,rgba(39,27,22,.08)); }
    .hg-hero-photo img { object-position: 53% center; }
    .hg-hero-copy { padding-block: 2.2rem; }
    .hg-hero h1 { font-size: clamp(3.5rem,11vw,5rem); }
    .hg-feature { display: flex; flex-direction: column; padding: 0; margin: 2.5rem auto; }
    .hg-feature-photo { width: 100%; height: clamp(15rem,64vw,24rem); }
    .hg-feature-card { width: calc(100% - 2.5rem); margin-top: -2rem; padding: 2.25rem 1.5rem; }
    .hg-footer { grid-template-columns: 1fr 1fr; padding-block: 2.8rem; gap: 2rem 1rem; }
    .hg-foot-brand { grid-column: 1/-1; }
    .hg-footer a { overflow-wrap: anywhere; }
    .hg-service-grid, .hg-form { grid-template-columns: minmax(0, 1fr); }
    .hg-about-portrait img { min-height: 17rem; object-position: 46% center; }
}
@media(max-width: 480px) {
    .hg-portfolio { padding-inline: .75rem; }
    .wp-block-gallery.hg-portfolio-gallery.has-nested-images > .wp-block-image:nth-child(5n+1) { margin-top: .75rem !important; }
    .wp-block-gallery.hg-portfolio-gallery.has-nested-images > .wp-block-image:nth-child(5n+1) img { aspect-ratio: 3 / 4; }
    .wp-block-gallery.hg-portfolio-gallery.has-nested-images > .wp-block-image:nth-child(5n+2) img { aspect-ratio: 4 / 5; }
}
@media(max-width: 380px) {
    .hg-welcome h2 { font-size: clamp(2.1rem, 10.75vw, 2.5rem); hyphens: auto; }
}
@media(prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,*::before,*::after { transition-duration: 0s !important; }
}
