/*
Theme Name: Camille de Rouville
Theme URI: https://www.camillederouville.fr/
Author: Julien Pipier
Description: Camillederouville.fr
Version: 1.2.0
Text Domain: camillederouville
*/

:root {
  --cdr-text: #555555;
  --cdr-heading: #000000;
  --cdr-menu: #111111;
  --cdr-menu-hover: #444444;
  --cdr-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--cdr-text);
  background: var(--cdr-bg);
  font-family: "News Gothic Regular", "News Gothic Regular", sans-serif;
}

a,
a:visited {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body:not(.gallery) #content {
  padding-top: 130px;
}

#menu_container {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  background: #ffffff;
}

#menu_container .menu_padding {
  padding: 1.5em 2em;
}

#menu_container #logo a {
  display: inline-block;
  text-decoration: none;
}

#menu_container #logo a img {
  border: 0;
  max-width: 100%;
  width: auto;
  max-height: 110px;
  transform-origin: left;
  transform: scale(0.8);
}

.nav {
  max-width: 900px;
  width: 60%;
  text-align: right;
}

.nav .menu_wrap {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

#menu,
#menu-logged-in {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

#menu > li,
#menu-logged-in > li {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
}

#menu a,
#menu a:visited,
#menu-logged-in a,
#menu-logged-in a:visited {
  color: var(--cdr-menu);
  font-family: "News Gothic Regular", "News Gothic Regular", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: normal;
  line-height: 1em;
  text-decoration: none;
  display: block;
  padding: 0.7em;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

#menu a:hover,
#menu-logged-in a:hover {
  color: var(--cdr-menu-hover);
  text-decoration: underline;
}

#menu .current-menu-item > a,
#menu .current_page_item > a,
#menu-logged-in .current-menu-item > a,
#menu-logged-in .current_page_item > a {
  color: #000000;
  font-weight: bold;
  text-decoration: none;
}

.social_icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 0;
}

.social_icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  width: 22px;
  height: 22px;
  transition: opacity 0.3s ease;
}

.social_icons a:hover {
  opacity: 0.7;
}

.social_icons svg {
  width: 20px;
  height: 20px;
}

.mobile-menu-trigger {
  display: none;
}

body.gallery #menu_container {
  position: static;
}

body.gallery .page {
  height: 100vh;
}

body.gallery #content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
}

body.gallery #content > .w-full {
  flex: 1;
  display: flex;
  min-height: 0;
}

body.gallery .assets {
  flex: 1;
  display: flex;
  min-height: 0;
}

body.gallery #assets_wrap {
  display: flex;
  flex-flow: row nowrap;
  padding-left: 2em;
  padding-bottom: 2em;
  height: 100%;
}

body.gallery .asset {
  height: 100%;
  flex-shrink: 0;
  margin-right: 5px;
}

body.gallery .asset:last-child {
  border-right: 5px solid transparent;
}

body.gallery .asset .wrap,
body.gallery .asset .img {
  height: 100%;
}

body.gallery .asset .img {
  position: relative;
}

body.gallery .asset img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.gallery .asset.txt {
  width: 665px;
  background: #ffffff;
}

body.gallery .asset.txt .wrap {
  display: flex;
  height: 100%;
}

body.gallery .asset.txt .text_content {
  flex: 1;
  height: 100%;
  padding: 20px 60px;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cdr-heading);
}

body.gallery .asset.txt .text_content p {
  margin: 0 0 1em;
}

body.gallery .asset.txt .text_content p:last-child {
  margin-bottom: 0;
}

.wpcf7 form {
  font-family: "News Gothic Regular", "News Gothic Regular", sans-serif;
  text-align: left;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 0;
  box-sizing: border-box;
}

.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: #000000;
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 12px;
}

.wpcf7 form label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
}

.wpcf7 input[type="submit"],
.wpcf7 button {
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  margin: 0;
  display: inline-block;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button:hover {
  background: #111111;
  color: #ffffff;
}

.cdr-title.align-left {
  text-align: left;
}

.cdr-title.align-center {
  text-align: center;
}

.cdr-title.align-right {
  text-align: right;
}

.cdr-intro {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 2147483647;
  opacity: 0;
  visibility: hidden;
}

.cdr-intro-inner {
  padding: 2rem;
}

.cdr-intro-logo {
  display: block;
  width: min(420px, 70vw);
  height: auto;
  filter: none;
}

.cdr-intro-title {
  font-family: "Benton Sans Thin", sans-serif;
  font-size: clamp(28px, 6vw, 72px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 200;
  color: #111111;
  white-space: pre;
}

.cdr-intro-letter {
  display: inline-block;
}

body.cdr-intro-active {
  overflow: hidden;
}

.cdr-posts {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 140px 2rem 4rem;
}

.cdr-posts-intro {
  margin: 0 auto 2.5rem;
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
}

.cdr-posts-intro p {
  margin: 0 0 1em;
}

.cdr-posts-intro p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol,
.cdr-posts-intro ul,
.cdr-posts-intro ol,
body.gallery .asset.txt .text_content ul,
body.gallery .asset.txt .text_content ol,
.cdr-grid-modal-body-content ul,
.cdr-grid-modal-body-content ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.prose ul,
.cdr-posts-intro ul,
body.gallery .asset.txt .text_content ul,
.cdr-grid-modal-body-content ul {
  list-style: disc;
}

.prose ol,
.cdr-posts-intro ol,
body.gallery .asset.txt .text_content ol,
.cdr-grid-modal-body-content ol {
  list-style: decimal;
}

.prose li,
.cdr-posts-intro li,
body.gallery .asset.txt .text_content li,
.cdr-grid-modal-body-content li {
  margin-bottom: 0.45em;
}

.prose li:last-child,
.cdr-posts-intro li:last-child,
body.gallery .asset.txt .text_content li:last-child,
.cdr-grid-modal-body-content li:last-child {
  margin-bottom: 0;
}

.cdr-grid {
  --cdr-grid-fit: cover;
  --cdr-modal-fit: contain;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.cdr-grid-item {
  position: relative;
}

.cdr-grid-trigger {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
}

.cdr-grid-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.cdr-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: var(--cdr-grid-fit);
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.cdr-grid-thumb video {
  width: 100%;
  height: 100%;
  object-fit: var(--cdr-grid-fit);
  display: block;
  pointer-events: none;
  background: #000000;
}

.cdr-grid-thumb-embed {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cdr-grid-thumb-embed .wp-block-embed,
.cdr-grid-thumb-embed .wp-block-video,
.cdr-grid-thumb-embed .wp-block-embed__wrapper {
  width: 100%;
  height: 100%;
  margin: 0;
}

.cdr-grid-thumb-embed iframe,
.cdr-grid-thumb-embed video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: var(--cdr-grid-fit);
  pointer-events: none;
}

.cdr-grid-thumb.is-video::before {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.cdr-grid-thumb.is-video::after {
  content: '';
  position: absolute;
  right: 20px;
  bottom: 19px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #ffffff;
  z-index: 2;
}

.cdr-grid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.cdr-grid-overlay-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cdr-grid-overlay-date {
  font-size: 12px;
  opacity: 0.8;
}

.cdr-grid-trigger:hover .cdr-grid-overlay,
.cdr-grid-trigger:focus-visible .cdr-grid-overlay {
  opacity: 1;
}

.cdr-grid-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 12px;
  color: #777777;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.cdr-grid-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

.cdr-grid-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cdr-grid-modal-overlay {
  position: absolute;
  inset: 0;
}

.cdr-grid-modal-panel {
  position: relative;
  background: #ffffff;
  width: min(1000px, 92vw);
  width: min(1000px, 92vw, calc(90vh * 2.2 / 1.2));
  aspect-ratio: 2.2 / 1.2;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: visible;
  z-index: 1;
}

.cdr-grid-modal-nav {
  position: absolute;
  top: 50%;
  left: -56px;
  right: -56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.cdr-grid-modal-prev,
.cdr-grid-modal-next {
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, opacity 0.15s ease;
}

.cdr-grid-modal-prev:hover,
.cdr-grid-modal-next:hover,
.cdr-grid-modal-prev:focus-visible,
.cdr-grid-modal-next:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.cdr-grid-modal-prev:disabled,
.cdr-grid-modal-next:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.cdr-grid-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, opacity 0.15s ease;
}

.cdr-grid-modal-close::before {
  content: '\00d7';
  font-size: 20px;
  line-height: 1;
  display: block;
  transform: translateY(-1px);
}

.cdr-grid-modal-close:hover,
.cdr-grid-modal-close:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.cdr-grid-modal-body {
  display: contents;
}

.cdr-grid-modal-media {
  background: #000000;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: height 0.2s ease;
}

.cdr-modal-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.cdr-modal-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.cdr-modal-carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cdr-modal-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.cdr-modal-carousel-prev,
.cdr-modal-carousel-next {
  position: absolute;
  top: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cdr-modal-carousel-prev {
  left: 12px;
}

.cdr-modal-carousel-next {
  right: 12px;
}

.cdr-modal-carousel-prev:hover,
.cdr-modal-carousel-next:hover,
.cdr-modal-carousel-prev:focus-visible,
.cdr-modal-carousel-next:focus-visible {
  background: #ffffff;
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.cdr-modal-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.cdr-modal-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.cdr-modal-carousel-dot.is-active {
  background: #ffffff;
}

.cdr-grid-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: var(--cdr-modal-fit, contain);
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.cdr-modal-embed {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cdr-modal-embed .wp-block-embed,
.cdr-modal-embed .wp-block-video {
  width: 100%;
  margin: 0;
}

.cdr-modal-embed iframe,
.cdr-modal-embed video {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.cdr-modal-embed video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.cdr-grid-modal-text {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cdr-grid-modal-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-family: "News Gothic Regular", "News Gothic Regular", sans-serif;
  color: #111111;
}

.cdr-grid-modal-text .cdr-grid-modal-body-content {
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  flex: 1 1 auto;
}

.cdr-grid-modal-body-content p {
  margin: 0 0 1.2em;
}

.cdr-grid-modal-body-content p:last-child {
  margin-bottom: 0;
}

.cdr-grid-modal-body-content a,
.cdr-grid-modal-body-content a:visited {
  color: #111111;
  text-decoration: none;
  background-image: linear-gradient(#f1e3a6, #f1e3a6);
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding: 0 2px;
  transition: background-size 0.2s ease, color 0.2s ease;
}

.cdr-grid-modal-body-content a:hover,
.cdr-grid-modal-body-content a:focus-visible {
  background-size: 100% 100%;
}

.cdr-grid-modal-body-content a:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.cdr-grid-comments {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  padding-top: 12px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}

.cdr-grid-comments-toggle {
  width: 100%;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.18);
}

.cdr-grid-comments-toggle:hover,
.cdr-grid-comments-toggle:focus-visible {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.24);
}

.cdr-grid-comments-count {
  margin-left: 6px;
  font-weight: 600;
}

.cdr-grid-comments-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
  pointer-events: none;
}

.cdr-grid-comments.is-open .cdr-grid-comments-panel {
  max-height: 60vh;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cdr-grid-comments-list {
  border: 1px solid #ededed;
  padding: 12px;
  max-height: 30vh;
  overflow-y: auto;
  background: #ffffff;
}

.cdr-grid-comments-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cdr-grid-comments-items li {
  padding: 10px 0;
  border-bottom: 1px solid #efefef;
  font-size: 13px;
  line-height: 1.5;
}

.cdr-grid-comments-items li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cdr-grid-comments-items .comment-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777777;
  margin-bottom: 6px;
}

.cdr-grid-comments-items .comment-content p {
  margin: 0 0 0.6em;
}

.cdr-grid-comments-items .comment-content p:last-child {
  margin-bottom: 0;
}

.cdr-grid-comments-empty,
.cdr-grid-comments-closed,
.cdr-grid-comments-login {
  font-size: 13px;
  color: #555555;
  margin: 0;
}

.cdr-grid-comments-login a,
.cdr-grid-comments-login a:visited {
  color: #111111;
  text-decoration: none;
  background-image: linear-gradient(#f1e3a6, #f1e3a6);
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding: 0 2px;
  transition: background-size 0.2s ease, color 0.2s ease;
}

.cdr-grid-comments-login a:hover,
.cdr-grid-comments-login a:focus-visible {
  background-size: 100% 100%;
}

.cdr-grid-comments-login a:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.cdr-grid-comments-form {
  margin-top: 12px;
}

.cdr-grid-comments-form-title {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #111111;
}

.cdr-grid-comment-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.cdr-grid-comment-form input,
.cdr-grid-comment-form textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}

.cdr-grid-comment-form textarea {
  min-height: 90px;
  resize: vertical;
}

.cdr-grid-comment-form .form-submit {
  margin: 12px 0 0;
}

.cdr-grid-comment-form .submit {
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.cdr-grid-comments-status {
  margin: 8px 0 0;
  font-size: 12px;
  color: #555555;
}

.cdr-grid-comments-status.is-error {
  color: #b00020;
}

.cdr-password-helper {
  margin-top: 12px;
}

.cdr-password-generate {
  display: inline-block;
  margin: 6px 0 10px;
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.cdr-password-generate:hover,
.cdr-password-generate:focus-visible {
  background: #000000;
}

.cdr-password-criteria {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cdr-password-criteria li {
  margin-top: 4px;
  color: #b00020;
}

.cdr-password-criteria li.is-valid {
  color: #0a7a3c;
}

.cdr-grid-sentinel {
  width: 100%;
  height: 1px;
}

body.cdr-modal-open {
  overflow: hidden;
}

.wp-block-shortcode.has-text-align-left {
  text-align: left;
}

.wp-block-shortcode.has-text-align-center {
  text-align: center;
}

.wp-block-shortcode.has-text-align-right {
  text-align: right;
}

.wp-block-shortcode.has-text-align-center .wpcf7 {
  margin-left: auto;
  margin-right: auto;
}

.wp-block-shortcode.has-text-align-right .wpcf7 {
  margin-left: auto;
  margin-right: 0;
}

.wp-block-shortcode.has-text-align-left .wpcf7 {
  margin-left: 0;
  margin-right: auto;
}

.cdr-gallery {
  scroll-behavior: smooth;
}

@media screen and (max-width: 767px) {
  #menu_container {
    width: 100vw;
    transition: transform 0.3s ease;
  }

  #menu_container #logo a img {
    max-height: 60px;
  }

  .header_container {
    position: relative;
  }

  .mobile-menu-trigger {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: none;
    border: none;
  }

  .mobile-menu-label {
    display: block;
    padding: 0.2rem 0.35rem;
    font-family: "News Gothic Regular", sans-serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #111111;
  }

  .nav {
    position: fixed;
    top: -500%;
    left: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    opacity: 0.01;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-align: center;
  }

  body.open-mobile-menu .nav {
    top: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .nav .menu_wrap {
    display: block;
  }

  #menu,
  #menu-logged-in {
    padding: 10px 30px 0;
    display: block;
  }

  #menu > li,
  #menu-logged-in > li {
    display: block;
    margin: 0;
    padding: 0;
    white-space: normal;
  }

  .social_icons {
    justify-content: center;
    margin: 20px auto 0;
  }

  body.gallery #content {
    justify-content: flex-start;
  }

  body.gallery #assets_wrap {
    height: 60vw;
    padding-left: 1rem;
    padding-bottom: 1rem;
  }

  body.gallery .asset.txt {
    width: 80vw;
  }

  body.gallery .asset.txt .text_content {
    padding: 16px 24px;
    font-size: 13px;
  }

  body.gallery .asset {
    width: 100vw;
  }

  body.gallery .asset .img,
  body.gallery .asset .wrap {
    width: 100%;
  }

  body.gallery .asset img {
    width: calc(100% - 25px);
    height: auto;
    object-fit: cover;
  }

  .cdr-posts {
    padding: 120px 1.2rem 3rem;
  }

  .cdr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .cdr-grid-modal-panel {
    width: min(1000px, 92vw);
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    max-height: 92vh;
  }

  .cdr-grid-modal-body {
    display: block;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .cdr-grid-modal-media {
    aspect-ratio: auto;
    height: auto;
    overflow: hidden;
  }

  .cdr-grid-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  .cdr-modal-carousel,
  .cdr-modal-carousel-track,
  .cdr-modal-carousel-slide {
    height: 100%;
  }

  .cdr-grid-modal-text {
    height: auto;
    margin-top: 32px;
    overflow: visible;
    max-height: none;
  }
}

@media screen and (min-width: 768px) {
  .mobile-menu-trigger {
    display: none;
  }
}
