/*
Theme Name: Photografia Child
Theme URI: https://staging.photografia.gr
Description: Divi child theme for Pavlos Kapoglou Photography
Author: iWorx
Template: Divi
Version: 1.0.0
*/

/* ---------- base ---------- */
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #222; }
.et_pb_pagebuilder_layout .entry-title { display: none; }
img { max-width: 100%; height: auto; }

/* ---------- header ---------- */
#main-header, #main-header .container { background-color: #0b0b0b !important; }
#et-top-navigation > ul > li > a { color: #ffffff !important; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; }
#et-top-navigation > ul > li > a:hover, #et-top-navigation > ul > li.current-menu-item > a { color: #c9a227 !important; }
#logo { color: #ffffff !important; letter-spacing: 3px; text-transform: uppercase; }
#logo a { color: #ffffff !important; }

/* ---------- footer ---------- */
#main-footer { background-color: #0b0b0b !important; color: #9a9a9a; }
#main-footer a { color: #ffffff; }
#footer-widgets .footer-widget h4 { color: #ffffff; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- hero / section overlays ---------- */
.pk-hero-section { position: relative; }
.pk-hero-section:before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.48); z-index: 0; }
.pk-hero-section .et_pb_row { position: relative; z-index: 1; }
.pk-hero-section .et_pb_text { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.pk-hero-btn { display: inline-block; color: #fff !important; border: 1px solid #fff; padding: 12px 30px; text-decoration: none !important; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; transition: all .25s ease; }
.pk-hero-btn:hover { background: #c9a227; border-color: #c9a227; color: #000 !important; }

.pk-about-section { position: relative; }
.pk-about-section:before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.62); z-index: 0; }
.pk-about-section .et_pb_row { position: relative; z-index: 1; }

/* ---------- portfolio grid ---------- */
.pk-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.pk-grid.pk-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.pk-grid.pk-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.pk-item { position: relative; display: block; overflow: hidden; background: #111; text-decoration: none !important; }
.pk-item img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .5s ease; }
.pk-item:hover img { transform: scale(1.05); }
.pk-item .pk-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px 12px; color: #fff; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); }
@media (max-width: 980px) {
  .pk-grid, .pk-grid.pk-cols-3, .pk-grid.pk-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pk-item img { height: 240px; }
}
@media (max-width: 600px) {
  .pk-grid, .pk-grid.pk-cols-3, .pk-grid.pk-cols-2 { grid-template-columns: 1fr; }
  .pk-item img { height: 220px; }
}

/* ---------- single portfolio ---------- */
.pk-single-wrap { max-width: 1400px; margin: 0 auto; padding: 70px 30px 90px; }
.pk-single-head { text-align: center; margin-bottom: 35px; }
.pk-single-head h1 { font-size: 38px; letter-spacing: 4px; text-transform: uppercase; margin: 18px 0 0; }
.pk-back { display: inline-block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #777 !important; text-decoration: none !important; }
.pk-back:hover { color: #c9a227 !important; }
.pk-archive-title { text-align: center; font-size: 38px; letter-spacing: 6px; text-transform: uppercase; margin: 0 0 35px; }
.pk-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.pk-gallery-item { display: block; overflow: hidden; background: #f2f2f2; }
.pk-gallery-item img { width: 100%; height: auto; display: block; transition: opacity .25s ease; }
.pk-gallery-item:hover img { opacity: .88; }
@media (max-width: 980px) { .pk-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .pk-gallery { grid-template-columns: 1fr; } .pk-single-wrap { padding: 40px 18px 60px; } .pk-single-head h1 { font-size: 28px; } }

/* ---------- header logo / menu fixes ---------- */
#logo { width: auto !important; height: 46px !important; max-width: 340px; }
#top-menu li a { color: #ffffff !important; }
#top-menu li.current-menu-item > a, #top-menu li a:hover { color: #c9a227 !important; }
#top-menu li li a { color: #333333 !important; }
#top-menu li li a:hover { color: #c9a227 !important; }

/* full width pages: keep hero edge-to-edge */
.et_full_width_page .pk-hero-section,
.et_full_width_page .pk-about-section { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
.et_full_width_page .pk-hero-section .et_pb_row,
.et_full_width_page .pk-about-section .et_pb_row { max-width: 1080px; margin-left: auto; margin-right: auto; }

/* About text: force white on all auto-generated paragraphs */
.pk-about-section .et_pb_text,
.pk-about-section .et_pb_text h1,
.pk-about-section .et_pb_text p,
.pk-about-section .et_pb_text small { color: #ffffff !important; }
body { overflow-x: hidden; }
