/* martyfoto.cz 2026: Bootstrap 5 + vlastní styly (EB Garamond a Raleway jako dřív, čitelnější písmo, čisté mřížky) */
:root {
	--mf-ink: #2f2d2e;
	--mf-text: #555;
	--mf-muted: #8a8a8a;
	--mf-soft: #f7f6f4;
	--mf-line: #e6e3df;
	--mf-serif: "EB Garamond", Georgia, serif;
	--bs-body-font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--bs-body-font-size: 1rem;
	--bs-body-color: var(--mf-text);
	--bs-link-color-rgb: 47, 45, 46;
	--bs-link-hover-color-rgb: 0, 0, 0;
}

body { font-weight: 400; line-height: 1.75; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .h1, .h2 { font-family: var(--mf-serif); font-weight: 400; color: var(--mf-ink); letter-spacing: .01em; }
p { color: var(--mf-text); }
a { text-underline-offset: .2em; }
hr.short { width: 48px; margin: 1.25rem auto 1.75rem; border: 0; border-top: 1px solid var(--mf-ink); opacity: .6; }
.link-line { color: var(--mf-ink); text-decoration: none; border-bottom: 1px solid var(--mf-ink); padding-bottom: 2px; letter-spacing: .05em; }
.link-line:hover { color: #000; border-color: #000; }
.btn { border-radius: 0; letter-spacing: .06em; font-weight: 600; font-size: .85rem; text-transform: uppercase; padding: .85rem 1.6rem; }
.btn-dark { --bs-btn-bg: var(--mf-ink); --bs-btn-border-color: var(--mf-ink); }

/* hlavička */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mf-line); }
.site-header .container { min-height: 64px; }
.brand { font-family: var(--mf-serif); font-size: 1.45rem; color: var(--mf-ink); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; line-height: 1.1; }
.brand span { display: block; font-family: var(--bs-body-font-family); font-size: .62rem; letter-spacing: .3em; color: var(--mf-muted); }
.brand:hover { color: #000; }
.main-nav { display: flex; gap: .25rem 1.6rem; margin: 0; }
.main-nav a { color: #585858; text-decoration: none; text-transform: uppercase; font-size: .78rem; font-weight: 600; letter-spacing: .14em; padding: .5rem 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav .active > a { color: #000; border-color: #000; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--mf-ink); transition: transform .25s; content: ""; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 991.98px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--mf-line); padding: .5rem 1.5rem 1.25rem; }
	.site-nav.open { display: block; }
	.main-nav { flex-direction: column; gap: 0; }
	.main-nav a { display: block; padding: .8rem 0; font-size: .85rem; border-bottom: 1px solid var(--mf-line); }
}

/* úvod */
.hero { position: relative; height: min(88vh, 860px); min-height: 460px; overflow: hidden; display: grid; place-items: center; background: #ddd; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.25), rgba(0,0,0,.05) 70%); }
.hero-caption { position: relative; z-index: 1; text-align: center; color: #fff; padding: 1rem; }
.hero-flower { width: 80px; height: auto; margin-bottom: .75rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 7vw, 4.25rem); text-transform: uppercase; letter-spacing: .08em; line-height: 1.05; text-shadow: 0 0 30px rgba(0,0,0,.45); margin: 0; }
.hero h1 small { display: block; font-family: var(--bs-body-font-family); font-size: clamp(.8rem, 1.6vw, 1rem); letter-spacing: .35em; margin-top: .9rem; font-weight: 400; }
.hero-lead { color: rgba(255,255,255,.9); letter-spacing: .1em; margin: .75rem 0 1.75rem; text-shadow: 0 0 20px rgba(0,0,0,.5); }
.hero-btn { --bs-btn-bg: rgba(255,255,255,.92); --bs-btn-border-color: transparent; --bs-btn-color: var(--mf-ink); }

/* o mně */
.about { background: var(--mf-soft); }
.about-photo img { display: block; width: 100%; height: 100%; max-height: 720px; object-fit: cover; }
.about-text { max-width: 34rem; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); }
.about-text h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.about-text p { font-size: 1.05rem; }

/* mřížka galerií */
.section-head, .page-head { text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.5rem clamp(1.5rem, 4vw, 2.5rem); }
.section-head h2, .page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.section-head p, .page-lead { max-width: 40rem; margin: 0 auto; color: var(--mf-muted); }
.page-lead p { color: var(--mf-muted); margin: 0; }
.page-body { padding-bottom: clamp(3rem, 7vw, 5rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
@media (max-width: 1199.98px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-photos { padding: 0 4px; }
.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: var(--mf-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, filter .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1rem; background: rgba(255,255,255,.82); color: var(--mf-ink); font-family: var(--mf-serif); font-size: 1.2rem; line-height: 1.3; opacity: 0; transition: opacity .4s; }
.gallery-item:hover .gallery-title, .gallery-item:focus-visible .gallery-title { opacity: 1; }
@media (hover: none) {
	/* na dotykových zařízeních je název vidět pořád (pruh dole) */
	.portfolio .gallery-title { opacity: 1; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: 1rem; padding: 2rem .75rem .75rem; }
}
.gallery-locked .gallery-title { opacity: 1; background: rgba(255,255,255,.85); font-size: 1.1rem; }
.gallery-locked .form-control { max-width: 14rem; border-radius: 0; text-align: center; }
.gallery-locked .btn { padding: .5rem 1rem; }

/* citát */
.quote { position: relative; min-height: 420px; display: grid; place-items: center; overflow: hidden; background: #ccc; margin-top: clamp(2rem, 5vw, 4rem); }
.quote-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote blockquote { position: relative; z-index: 1; text-align: center; color: #fff; margin: 0; padding: 2rem; text-shadow: 0 0 30px rgba(0,0,0,.6); }
.quote blockquote p { color: #fff; font-family: var(--mf-serif); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 .5rem; line-height: 1.2; }
.quote cite { font-style: normal; letter-spacing: .3em; font-size: .8rem; text-transform: uppercase; }

/* kontakt */
.contact-text { display: flex; justify-content: center; }
.contact-inner { max-width: 32rem; width: 100%; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3rem); }
.contact-inner h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.contact-info a { color: var(--mf-ink); }
.contact-form { margin-top: 1.5rem; }
.contact-form label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--mf-ink); margin-bottom: .3rem; }
.contact-form .form-control { border-radius: 0; border-color: var(--mf-line); padding: .7rem .85rem; }
.contact-form .form-control:focus { border-color: var(--mf-ink); box-shadow: none; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form .captcha-group { display: flex; align-items: stretch; gap: .5rem; }
.contact-form .captcha-group .input-group-addon { display: contents; }
.contact-form .captcha { height: 46px; width: auto !important; border: 1px solid var(--mf-line); }
.contact-form .hidn, .hidn { display: none !important; }
.small-note { font-size: .85rem; color: var(--mf-muted); margin-top: 1.5rem; }
.contact-photo img { display: block; width: 100%; height: 100%; min-height: 360px; max-height: 900px; object-fit: cover; }

/* balíčky */
.package { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--mf-line); background: #fff; }
.package img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.package-body { flex: 1; display: flex; flex-direction: column; padding: 1.75rem; text-align: center; }
.package-body h2 { font-size: 2rem; margin-bottom: .25rem; }
.package-meta { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--mf-ink); margin-bottom: 1.25rem; }
.package-body .btn { margin-top: auto; align-self: center; }

/* partneři */
.partners h2 { font-size: 1.5rem; text-align: center; margin-bottom: 1.25rem; }
.partners a { display: block; text-align: center; color: var(--mf-ink); text-decoration: none; margin-bottom: 1.75rem; }
.partners img { display: block; max-width: 100%; height: auto; margin: 0 auto .5rem; }
.partners a:hover span { text-decoration: underline; }

/* patička */
.site-footer { background: var(--mf-ink); color: #b7b7b7; padding: 3rem 0 2rem; }
.site-footer p { color: #b7b7b7; }
.site-footer a { color: #fafaf9; }
.footer-brand { font-family: var(--mf-serif); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .08em; color: #fff !important; margin-bottom: .5rem; }
.footer-brand span { display: block; font-family: var(--bs-body-font-family); font-size: .65rem; letter-spacing: .3em; color: #a1a1a1; }
.footer-small { font-size: .8rem; margin: 1.5rem 0 0; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(20,19,19,.96); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: calc(100vw - 7rem); max-height: calc(100vh - 5rem); object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; line-height: 1; width: 3.5rem; height: 3.5rem; opacity: .75; }
.lb button:hover, .lb button:focus-visible { opacity: 1; }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .25rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: .1em; }
body.lb-open { overflow: hidden; }
@media (max-width: 575.98px) { .lb img { max-width: 100vw; } .lb-prev, .lb-next { top: auto; bottom: .25rem; transform: none; } }

/* obsah, login, administrace (staré BS3 třídy z formulářů jádra) */
.text img { max-width: 100%; height: auto; }
.admin-bar .nav-link { padding: .5rem .75rem; }
.form-group { margin-bottom: 1rem; }
.pull-right, .float-right { float: right; } .pull-left, .float-left { float: left; }
.cls { clear: both; }
.hide { display: none; }
.click { cursor: pointer; } .moveIT { cursor: move; }
.img-responsive { max-width: 100%; height: auto; }
.btn-block { display: block; width: 100%; }
.marginT0 { margin-top: 0 !important; } .marginT1, .marginT { margin-top: 10px !important; } .marginT2, .marginTT { margin-top: 20px !important; } .marginT3, .marginTTT { margin-top: 30px !important; } .marginT4, .marginTTTT { margin-top: 40px !important; } .marginT5, .marginTTTTT { margin-top: 50px !important; }
.marginB0 { margin-bottom: 0 !important; } .marginB1, .marginB { margin-bottom: 10px !important; } .marginB2, .marginBB { margin-bottom: 20px !important; } .marginB3, .marginBBB { margin-bottom: 30px !important; } .marginB4, .marginBBBB { margin-bottom: 40px !important; } .marginB5 { margin-bottom: 50px !important; }
@media (min-width: 768px) { .col-md-offset-3 { margin-left: 25%; } .col-sm-offset-3 { margin-left: 25%; } }
#subpage main > .row, #subpage main > h1 { padding-left: 1.5rem; padding-right: 1.5rem; }
.page-login main, .page-nastaveni main { max-width: 960px; margin: 0 auto; padding: 3rem 1.5rem; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
@media print {
	.site-header, .admin-bar, .contact-form, .quote { display: none; }
	.hero { height: auto; min-height: 0; }
}
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
/* první (nejnovější) svatba v portfoliu větší: na 4 a 2 sloupcích pak 17 galerií vyplní mřížku bez osamocené poslední */
@media (min-width: 1200px), (max-width: 767.98px) {
	.portfolio .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
	.portfolio .gallery-item:first-child .gallery-title { font-size: 1.6rem; }
}
.gallery-locked .form-control, .gallery-locked .btn { font-family: var(--bs-body-font-family); }
.package-body p:not(.package-meta) { text-align: left; }
