﻿/* Emerson Art Gallery - modern CSS matching original layout */

:root {
  --emerson-black: #000000;
  --emerson-white: #ffffff;
  --emerson-red: #cc0000;
  --emerson-orange: #ff9900;
  --emerson-green: #64b14e;
  --emerson-footer: #666666;
  --emerson-muted: #8f8f8f;
  --emerson-form-bg: rgba(51, 51, 51, 0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-size: 14px;
  line-height: 1.2;
  background-color: var(--emerson-white);
  min-height: 100vh;
  color: var(--emerson-black);
  font-family: "Oswald", Helvetica, Arial, sans-serif;
}

h1 {
  font-size: 42px;
}

h1,
h2 {
  font-family: "Oswald", Helvetica, Arial, sans-serif;
  color: var(--emerson-black);
  margin-bottom: 10px;
  margin-top: 20px;
}

h2 {
  font-size: 40px;
  margin-bottom: 26px;
}

h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

a {
  color: #444444;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  color: var(--emerson-red);
}

img {
  max-width: 100%;
  height: auto;
}

p {
  color: var(--emerson-muted);
  font-size: 17px;
  line-height: 28px;
  padding: 0;
  font-weight: 300;
  font-family: "Oswald", sans-serif;
}

#wrapper {
  position: relative;
}

.clearfix {
  clear: both;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Match original container width */
@media (min-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

/* ===== Header / Video ===== */
#masthead,
#block2 {
  position: relative;
  overflow: hidden;
}

.video-section {
  overflow: hidden;
  position: relative;
}

#logo {
  padding: 15em 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

#video_background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: auto;
  overflow: hidden;
  opacity: 1;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* ===== Navigation ===== */
.main-nav {
  min-height: 70px;
}

.main-navbar {
  position: relative;
  background-color: var(--emerson-black);
  margin-bottom: 0;
  z-index: 150;
}

.main-nav-scrolled {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

.emerson-navbar {
  padding-top: 0;
  padding-bottom: 0;
  min-height: 70px;
}

#brand {
  float: none;
  padding: 0;
}

#brand h1 {
  color: var(--emerson-white);
  font-size: 28px;
  margin: 0;
  padding: 20px 0;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

#emersonMainNav .navbar-nav {
  flex-direction: row;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 0;
}

#emersonMainNav .nav-item {
  margin-left: 18px;
  list-style: none;
}

#emersonMainNav .nav-link,
#emersonMainNav a.nav-item {
  color: var(--emerson-white) !important;
  font-size: 14px;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  padding: 0 0 2px !important;
  border-bottom: 1px solid transparent;
  background: transparent !important;
  display: inline-block;
}

#emersonMainNav .nav-link:hover,
#emersonMainNav .nav-link:focus,
#emersonMainNav .nav-link.active,
#emersonMainNav a.nav-item:hover,
#emersonMainNav a.nav-item.active,
#emersonMainNav a.nav-selected {
  background-color: transparent !important;
  border-bottom: 1px solid var(--emerson-red);
  color: var(--emerson-white) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  padding: 0.35rem 0.55rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Content sections ===== */
#block1,
.parallax .container,
#classes,
#featured {
  padding: 5em 0;
}

.watermark {
  display: block;
  position: relative;
}

.watermark::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: url("../images/emersonLogoPurple.png") no-repeat center center;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

.texture {
  background: url("../images/texture.png") repeat;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
}

.inner-wrap {
  height: 100%;
  position: relative;
  width: 100%;
  min-height: 220px;
}

#contact.block.img_bg .parallax {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

#contact.block.img_bg .parallax-image-area img,
#contact.block.img_bg .parallax-image-area .ccm-image-block,
#contact.block.img_bg .parallax-image-area picture {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

#contact.block.img_bg .parallax-image-area .texture {
  z-index: 1;
}

#contact.block.img_bg .parallax-image-area .block-title {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#block2 {
  min-height: 550px;
}

#block2 img,
#block2 .ccm-image-block,
#block2 picture,
#block2 picture img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  min-height: 550px;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
}

#logo img,
#logo .ccm-image-block {
  display: inline-block;
  max-width: 225px;
}

#brand h1,
#brand .ccm-block-content h1,
#brand p {
  color: var(--emerson-white);
  font-size: 28px;
  margin: 0;
  padding: 20px 0;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-family: "Oswald", Helvetica, Arial, sans-serif;
}

.footer-copyright,
footer .ccm-block-content .footer-copyright,
footer .ccm-block-content p.footer-copyright {
  text-align: center;
  color: var(--emerson-white) !important;
  margin: 10px 0 0;
}

footer .ccm-block-content,
footer .ccm-block-content p,
footer .ccm-block-content span {
  color: var(--emerson-white);
}

/* About page image presentation */
#fullpage article .ccm-image-block,
#fullpage article img.ccm-image-block {
  display: inline-block;
  margin: 8px auto;
  max-width: 100%;
  height: auto;
}

#fullpage article p {
  text-align: center;
}

#fullpage article a .ccm-image-block {
  margin: 4px;
}

.featuredvideo {
  max-width: 690px;
  max-height: 400px;
  padding-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured artist buckets */
.buckets .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0.75rem;
}

.buckets .box-label p {
  background-color: #000000 !important;
  color: #ffffff !important;
  font-size: 17px !important;
  margin: 0 0 8px !important;
  text-align: center !important;
  padding: 12px 10px !important;
  font-family: verdana, geneva, sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.buckets .box-label p a,
.buckets .box-label p strong,
.buckets .box-label p span {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
}

.buckets .box-label p a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.buckets .view {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  z-index: auto;
}

.buckets .view .mask,
.buckets .view .text-image {
  display: none;
}

.view {
  min-height: 0;
}

.box-label p {
  margin-bottom: 0.5rem;
}

.box-label a {
  color: #fff;
}

/* ===== Forms (match original pixo-form look) ===== */
.pixo-form-wrapper {
  padding: 20px;
  background-color: var(--emerson-form-bg);
  border-radius: 10px;
  margin: 0 100px;
  color: #fff;
}

.question-label {
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.question-input {
  margin-bottom: 10px;
}

.question-input input,
.question-input textarea,
.captcha-input input {
  width: 100%;
  height: 32px;
  border: 1px solid #ccc;
  padding: 4px 8px;
  color: #666;
}

.question-input textarea {
  height: 100px;
}

input.submit-button,
.pixo-form .submit-button {
  background-color: var(--emerson-red);
  border: none;
  padding: 10px 30px;
  text-transform: uppercase;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

input.submit-button:hover {
  background-color: #a00000;
}

.ccmFormBlock-field-wrapper .clear {
  clear: both;
}

/* ===== Full page / About ===== */
#fullpage {
  margin-top: 30px;
}

.responsive-iframe-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.responsive-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== Footer ===== */
footer {
  margin-top: 50px;
}

footer .container {
  background-color: var(--emerson-footer);
  color: var(--emerson-white);
  padding: 10px 20px;
}

footer p,
footer span {
  color: var(--emerson-white);
}

.footer-copyright {
  text-align: center;
  color: var(--emerson-white) !important;
  margin: 10px 0 0;
}

/* ===== Gallery theme (legacy) ===== */
body.gallery-theme {
  background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 40%);
}

body.gallery-theme header {
  padding: 20px 0 10px;
}

body.gallery-theme #contact-info p {
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

body.gallery-theme #contact-info .tel-no {
  font-weight: 700;
}

body.gallery-theme .gallery-nav .navbar-nav {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

body.gallery-theme .gallery-nav a {
  text-transform: uppercase;
  font-size: 14px;
  color: #333;
}

body.gallery-theme .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.35);
}

body.gallery-theme .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.gallery-theme #footer {
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  color: #666;
}

body.gallery-theme .port_header,
body.gallery-theme .port_body,
body.gallery-theme .port_desc {
  min-height: 20px;
}

/* ===== Cookie bar (stay below Concrete CMS toolbar) ===== */
#ccm-cookiesDisclosure.disclosure-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Below Concrete toolbar (~1000+) and panels; above page content */
  z-index: 90;
  background: #edeeef;
  border-bottom: 1px solid #ccc;
  padding: 12px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* When Concrete edit toolbar is visible, sit under it */
html.ccm-toolbar-visible #ccm-cookiesDisclosure.disclosure-top,
body.ccm-toolbar-visible #ccm-cookiesDisclosure.disclosure-top {
  top: 48px;
}

#ccm-toolbar ~ #ccm-cookiesDisclosure.disclosure-top,
body:has(#ccm-toolbar) #ccm-cookiesDisclosure.disclosure-top {
  top: 48px;
}

#ccm-cookiesDisclosure .disclosure-container {
  max-width: 960px;
  margin: 0 auto;
}

#ccm-cookiesDisclosure .disclosure-content p {
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
}

#ccm-cookiesDisclosure .disclosure-form label {
  color: #333;
  font-weight: 400;
}

#ccm-cookiesDisclosure .button input {
  background: #333;
  color: #ffcc00;
  border: none;
  padding: 6px 14px;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  #block1,
  .parallax .container,
  #classes,
  #featured {
    padding: 2em 0;
  }

  #logo {
    padding: 5em 0;
  }

  footer .container {
    text-align: center;
  }

  #brand h1 {
    margin-left: 0;
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  #logo {
    padding: 1em 0;
  }

  #logo img {
    visibility: visible;
  }

  .video-section {
    background-image: url("../images/homepage-video-fallback.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 275px;
  }

  #video_background {
    display: none;
  }

  .pixo-form-wrapper {
    margin: 0 20px;
  }

  .watermark::after {
    display: none;
  }

  .main-nav {
    height: auto;
  }

  #brand h1 {
    font-size: 18px;
    padding: 16px 0;
  }

  #emersonMainNav {
    width: 100%;
    background: #000;
    padding-bottom: 12px;
  }

  #emersonMainNav .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
  }

  #emersonMainNav .nav-item {
    margin: 10px 0 0;
  }

  #contact.block.img_bg .parallax {
    background-attachment: scroll;
  }

  body.gallery-theme .gallery-nav .navbar-nav {
    flex-direction: column;
  }

  .buckets .box-label p {
    font-size: 15px !important;
  }
}

@media (min-width: 769px) {
  #logo img {
    visibility: hidden;
  }
}

@media (min-width: 1200px) {
  #logo {
    padding: 10em 0;
  }
}

@media (max-width: 1200px) {
  #logo {
    padding: 10em 0;
  }
}
