/*
Theme Name: Mr Flat Roof
Theme URI: https://mrflatroof.ie/
Author: Anik Bilal
Description: Custom WordPress theme for Mr Flat Roof, with a built-in project gallery manager.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mr-flat-roof
*/

/* WordPress-specific additions. The approved site styling lives in assets/css/site.css. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  width: auto;
  top: 8px;
  left: 8px;
  z-index: 100000;
  background: #fff;
  color: #121718;
  padding: 12px 16px;
  font-weight: 800;
}

.admin-bar .site-header {
  top: 32px;
}

.mfr-managed-projects {
  background: #e9eee9;
}

.mfr-managed-projects .section-heading {
  margin-bottom: 44px;
}

.projects-masonry figure > a {
  display: block;
  height: 100%;
}

.projects-masonry figure > a:focus-visible {
  outline: 4px solid #f5a623;
  outline-offset: -4px;
}

.mfr-project-meta {
  color: #7ee0ad;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 21px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mfr-single-project {
  background: #fff;
}

.mfr-project-story {
  background: #fff;
  padding: 100px 0;
}

.mfr-project-story-grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.mfr-project-story h2 {
  margin: 0;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.mfr-project-content {
  color: #596360;
  font-size: 1rem;
  line-height: 1.8;
}

.mfr-project-content > * + * {
  margin-top: 1.2em;
}

.mfr-project-video {
  background: #1b2222;
  color: #fff;
  padding: 95px 0;
}

.mfr-project-video video,
.mfr-project-video iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 760px;
  background: #090b0b;
  border: 0;
}

.mfr-project-gallery {
  background: #fff;
  padding: 105px 0;
}

.mfr-empty-content,
.mfr-default-page {
  min-height: 55vh;
  background: #fff;
  padding: 100px 0;
}

.mfr-default-page .entry-content {
  max-width: 820px;
  color: #596360;
  line-height: 1.75;
}

.mfr-default-page .entry-content > * + * {
  margin-top: 1.25em;
}

.mfr-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .mobile-menu {
    justify-self: end;
    margin-left: auto;
  }

  .mfr-project-story-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .mfr-project-story,
  .mfr-project-video,
  .mfr-project-gallery {
    padding: 76px 0;
  }
}
