/*
  eliska.css — Visual overrides for the portfolio of MgA. Eliška Hanuš
  Layered on top of main.css (Stellar by HTML5 UP).
  Goal: lighter, gallery-appropriate aesthetic for fine art & textiles.
*/

/* ── Google Fonts ─────────────────────────────────────────────────── */
/* Source Sans Pro — původní písmo šablony Stellar (import už je v main.css) */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* ── Colour palette ───────────────────────────────────────────────── */
/*
  ivory:    #f7f3ee  (body background)
  stone:    #e8e1d9  (subtle section alt bg)
  ink:      #2c2825  (primary text)
  ash:      #6b6560  (secondary text / muted)
  terra:    #b5705a  (accent — warm terracotta, from the palette of her garden paintings)
  terra-dk: #965e4b  (hover / active accent)
*/

/* ── Body & base ──────────────────────────────────────────────────── */

body {
    background-color: #f7f3ee !important;
    background-image: url('images/backgroundImg.JPG') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
    color: #2c2825;
}

body, input, select, textarea {
    color: #2c2825;
}

a {
    color: #b5705a;
    border-bottom-color: rgba(181, 112, 90, 0.35);
}
a:hover {
    color: #965e4b;
    border-bottom-color: transparent;
}

strong, b { font-weight: 600; }

/* ── Typography — Source Sans Pro (původní písmo šablony) ─────────── */

h1, h2, h3 {
    font-family: 'Source Sans Pro', Helvetica, sans-serif;
    font-weight: 300;
    color: #2c2825;
    letter-spacing: 0.01em;
}

h1 { font-size: 2.75em; }
h2 { font-size: 1.9em; }
h3 { font-size: 1.35em; }

/* ── Header (top hero) — průhledný, ať je vidět obraz na pozadí ───── */

#header {
    background: transparent;
    padding: 6em 2em 4em;
}

#header h1 {
    font-family: 'Source Sans Pro', Helvetica, sans-serif;
    font-weight: 300;
    font-size: 3.5em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2c2825;
    text-shadow: 0 0 18px rgba(247, 243, 238, 0.85);
}

#header p {
    color: rgba(44, 40, 37, 0.75);
    letter-spacing: 0.15em;
    font-size: 0.85em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(247, 243, 238, 0.85);
}

/* ── Navigation ───────────────────────────────────────────────────── */

#nav {
    background: rgba(247, 243, 238, 0.92);
    border-bottom: 1px solid #e0d8cf;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

#nav ul li a {
    color: #2c2825;
    border-bottom-color: transparent;
    font-size: 0.8em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#nav ul li a:hover,
#nav ul li a.active {
    color: #b5705a;
    border-bottom-color: #b5705a;
}

/* ── Main sections ────────────────────────────────────────────────── */

#main {
    background: rgba(247, 243, 238, 0.94);
}

section.main {
    background: transparent;
    border-top: 1px solid #e8e1d9;
    color: #2c2825;
}

section.main:first-child {
    border-top: none;
}

/* Header.major accent line */
header.major h2:after {
    background: #b5705a !important;
}

header.major h2 {
    color: #2c2825;
}

header.major p {
    color: #6b6560;
}

/* ── Spotlight (intro section) ────────────────────────────────────── */

.spotlight .content {
    color: #2c2825;
}

.spotlight .content p {
    color: #3d3530;
    line-height: 1.75;
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.button {
    background: transparent;
    border-color: rgba(44, 40, 37, 0.35);
    color: #2c2825;
}
.button:hover {
    border-color: #b5705a;
    color: #b5705a;
}

.button.primary {
    background: #b5705a !important;
    border-color: #b5705a !important;
    color: #fff !important;
}
.button.primary:hover {
    background: #965e4b !important;
    border-color: #965e4b !important;
}

/* ── Contact / dl.alt ─────────────────────────────────────────────── */

dl.alt dt {
    color: #6b6560;
}

dl.alt dd {
    color: #2c2825;
    border-left-color: #e0d8cf;
}

/* ── Icons (social) ───────────────────────────────────────────────── */

ul.icons li a {
    color: #6b6560;
    border-color: #e0d8cf;
}
ul.icons li a:hover {
    color: #b5705a;
    border-color: #b5705a;
}

/* ── Footer ───────────────────────────────────────────────────────── */

#footer {
    background: rgba(237, 232, 226, 0.94);
    border-top: 1px solid #ddd5cc;
    color: #3d3530;
}

#footer h2 {
    color: #2c2825;
}

#footer p {
    color: #6b6560;
    font-size: 0.85em;
}

#footer a {
    color: #b5705a;
}

#footer .copyright {
    color: #9e948d;
    font-size: 0.8em;
}

/* ── CV grid (already in index.html, reinforce colours) ──────────── */

.cv-block h3 {
    color: #9e948d;
    border-bottom-color: #e0d8cf;
}

.cv-year {
    color: #9e948d;
}

.cv-highlight {
    color: #b5705a !important;
}

/* ── Masonry gallery (replaces square tile grid) ──────────────────── */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0 1.75rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid #c8c0b8;
    color: #6b6560;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Source Sans Pro', Helvetica, sans-serif;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
    border-color: #b5705a;
    color: #b5705a;
}

.filter-btn.active {
    background: #b5705a;
    border-color: #b5705a;
    color: #fff;
}

.masonry-gallery {
    columns: 3 220px;
    column-gap: 0.75rem;
    max-width: 980px;
    margin: 0 auto;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 0.75rem;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2px;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.masonry-item:hover img {
    transform: scale(1.04);
    filter: brightness(0.82);
}

.masonry-item .photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.75rem 0.6rem;
    background: linear-gradient(transparent, rgba(30,22,18,0.72));
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.masonry-item:hover .photo-overlay {
    opacity: 1;
}

.masonry-item.hidden {
    display: none;
}

/* ── Lightbox — warm up from dark grey ────────────────────────────── */

#lightbox {
    background: rgba(28, 22, 18, 0.97) !important;
}

#lb-header {
    background: rgba(28, 22, 18, 0.6) !important;
}

#lb-thumbs {
    background: rgba(28, 22, 18, 0.6) !important;
}
