:root {
  --grid-column-1: repeat(1, minmax(0, 1fr));
  --grid-column-2: repeat(2, minmax(0, 1fr));
  --grid-column-3: repeat(3, minmax(0, 1fr));
  --grid-column-4: repeat(4, minmax(0, 1fr));
  --flex-count-2: 0 0 calc(100vw / 2 - 1.2rem);
  --flex-count-3: 0 0 calc(100vw / 3 - 1.2rem);
  --flex-count-4: 0 0 calc(100vw / 4 - 1.2rem);
  --flex-count-5: 0 0 calc(100vw / 5 - 1.2rem);
  --clamp-width-1: clamp(565px, 100%, 1280px);
  --wp--preset--font-family--heading: "Inter Tight", "Inter", "Roboto" sans-serif;
  --wp--preset--font-family--inter-tight: "Inter Tight", "Inter", "Roboto", sans-serif;
}

/* Lazy Video Block Styles */
.lazy-video-block {
  margin: 2rem 0;
  max-width: 1280px; /* None (Max 1280px wide) */
  margin-left: auto;
  margin-right: auto;
  clear: both;
  position: relative;
  background: #000;
  border-radius: clamp(8px, 1.5vw, 12px);
  overflow: hidden;
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  width: 100%;
  height: auto;
}
.lazy-video-block.wp-block-video, .lazy-video-block.lazy-video-container {
  width: 100%;
  height: auto;
  max-width: 100%;
}
.lazy-video-block::after {
  content: "";
  display: table;
  clear: both;
}
.lazy-video-block.alignleft {
  float: left;
  margin-right: 2rem;
  margin-bottom: 1rem;
  max-width: 50%;
  margin-left: 0;
}
@media (width <= 768px) {
  .lazy-video-block.alignleft {
    float: none;
    margin: 1rem 0;
    max-width: 100%;
  }
}
.lazy-video-block.alignright {
  float: right;
  margin-left: 2rem;
  margin-bottom: 1rem;
  max-width: 50%;
  margin-right: 0;
}
@media (width <= 768px) {
  .lazy-video-block.alignright {
    float: none;
    margin: 1rem 0;
    max-width: 100%;
  }
}
.lazy-video-block.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 1280px; /* None (Max 1280px wide) */
}
.lazy-video-block.alignwide {
  max-width: 1290px; /* Wide Width (Max 1290px wide) */
  margin-left: auto;
  margin-right: auto;
}
.lazy-video-block.alignfull {
  max-width: 100vw; /* Full width */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
@media (width <= 1024px) {
  .lazy-video-block {
    margin: 1.5rem 0;
    border-radius: clamp(6px, 1.2vw, 10px);
    max-width: 100% !important;
  }
}
@media (width <= 768px) {
  .lazy-video-block {
    margin: 1rem 0;
    border-radius: clamp(4px, 1vw, 8px);
    max-width: 100% !important;
  }
  .lazy-video-block.alignleft, .lazy-video-block.alignright {
    float: none;
    margin: 1rem 0;
    max-width: 100% !important;
    width: 100% !important;
  }
}
@media (width <= 480px) {
  .lazy-video-block {
    margin: 0.75rem 0;
    border-radius: clamp(3px, 0.8vw, 6px);
    max-width: 100% !important;
  }
  .lazy-video-block.alignleft, .lazy-video-block.alignright {
    float: none;
    margin: 0.75rem 0;
    max-width: 100% !important;
    width: 100% !important;
  }
}
@media (width <= 320px) {
  .lazy-video-block {
    margin: 0.5rem 0;
    max-width: 100% !important;
  }
}

.lazy-video-wrapper {
  position: relative;
  width: 100% !important;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  max-width: 100% !important;
}
.lazy-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}
@media (width <= 768px) {
  .lazy-video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (width <= 480px) {
  .lazy-video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.lazy-video {
  width: 100% !important;
  height: auto !important;
  display: block;
  background: #000;
  border-radius: clamp(8px, 1.5vw, 12px);
  max-width: 100% !important;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (width <= 768px) {
  .lazy-video {
    border-radius: clamp(4px, 1vw, 8px);
    max-width: 100% !important;
  }
}
@media (width <= 480px) {
  .lazy-video {
    border-radius: clamp(3px, 0.8vw, 6px);
    max-width: 100% !important;
  }
}
@media (width <= 320px) {
  .lazy-video {
    max-width: 100% !important;
  }
}
.lazy-video:not([controls]) {
  pointer-events: auto;
}
.lazy-video:not([controls])::-webkit-media-controls-panel {
  display: none !important;
}
.lazy-video:not([controls])::-webkit-media-controls-play-button {
  display: none !important;
}
.lazy-video:not([controls])::-webkit-media-controls-start-playback-button {
  display: none !important;
}
.lazy-video:not([controls])::-webkit-media-controls {
  display: none !important;
}
.lazy-video:not([controls])::-webkit-media-controls-overlay-play-button {
  display: none !important;
}
.lazy-video:not([controls])::-moz-media-controls {
  display: none !important;
}
.lazy-video.lazy-loading {
  opacity: 0.7;
  position: relative;
}
.lazy-video.lazy-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  -webkit-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
  z-index: 2;
}
@media (width <= 768px) {
  .lazy-video.lazy-loading::before {
    width: 32px;
    height: 32px;
    border-width: 2px;
  }
}
@media (width <= 480px) {
  .lazy-video.lazy-loading::before {
    width: 24px;
    height: 24px;
    border-width: 2px;
  }
}
.lazy-video.lazy-loaded {
  opacity: 1;
}
.lazy-video.lazy-error {
  opacity: 0.5;
  background: #f5f5f5;
  border: 2px dashed #ccc;
}

.lazy-video-no-controls {
  pointer-events: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.lazy-video-no-controls::-webkit-media-controls-panel, .lazy-video-no-controls::-webkit-media-controls-play-button, .lazy-video-no-controls::-webkit-media-controls-start-playback-button, .lazy-video-no-controls::-webkit-media-controls, .lazy-video-no-controls::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
.lazy-video-no-controls::-moz-media-controls {
  display: none !important;
}
.lazy-video-no-controls:hover::-webkit-media-controls-panel, .lazy-video-no-controls:focus::-webkit-media-controls-panel, .lazy-video-no-controls:active::-webkit-media-controls-panel {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.lazy-video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.lazy-video-poster:hover {
  opacity: 0.9;
}
.lazy-video-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

.lazy-video-play-button {
  background: rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.lazy-video-play-button:hover {
  background: rgba(0, 0, 0, 0.9);
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}
.lazy-video-play-button:active {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}
.lazy-video-play-button:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}
.lazy-video-play-button svg {
  width: 48px;
  height: 36px;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}
.lazy-video-play-button:hover svg {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}
@media (width <= 1024px) {
  .lazy-video-play-button {
    width: 70px;
    height: 70px;
  }
  .lazy-video-play-button svg {
    width: 42px;
    height: 32px;
  }
}
@media (width <= 768px) {
  .lazy-video-play-button {
    width: 60px;
    height: 60px;
  }
  .lazy-video-play-button svg {
    width: 36px;
    height: 27px;
  }
}
@media (width <= 480px) {
  .lazy-video-play-button {
    width: 50px;
    height: 50px;
  }
  .lazy-video-play-button svg {
    width: 30px;
    height: 22px;
  }
}
@media (width <= 320px) {
  .lazy-video-play-button {
    width: 40px;
    height: 40px;
  }
  .lazy-video-play-button svg {
    width: 24px;
    height: 18px;
  }
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
            transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
            transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
            transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
            transform: translate(-50%, -50%) rotate(360deg);
  }
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lazy-video:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

.wp-block-acf-lazy-video-block {
  margin: 1rem 0;
}
@media (width <= 768px) {
  .wp-block-acf-lazy-video-block {
    margin: 0.75rem 0;
  }
}
@media (width <= 480px) {
  .wp-block-acf-lazy-video-block {
    margin: 0.5rem 0;
  }
}

.wp-block-acf-lazy-video-block.lazy-video-block-placeholder,
.lazy-video-block-placeholder {
  padding: 2rem;
  border: 2px dashed #ccc;
  text-align: center;
  color: #666;
  background: #f9f9f9;
  border-radius: clamp(8px, 1.5vw, 12px);
  font-size: 1rem;
}
@media (width <= 768px) {
  .wp-block-acf-lazy-video-block.lazy-video-block-placeholder,
  .lazy-video-block-placeholder {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
}
@media (width <= 480px) {
  .wp-block-acf-lazy-video-block.lazy-video-block-placeholder,
  .lazy-video-block-placeholder {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

@media (prefers-contrast: high) {
  .lazy-video-play-button {
    background: #000;
    border: 2px solid #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lazy-video,
  .lazy-video-play-button,
  .lazy-video-poster {
    -webkit-transition: none;
    transition: none;
  }
  .lazy-video.lazy-loading::before {
    -webkit-animation: none;
            animation: none;
  }
  .lazy-video.lazy-loaded {
    -webkit-animation: none;
            animation: none;
  }
}
@media print {
  .lazy-video-block {
    -webkit-column-break-inside: avoid;
       -moz-column-break-inside: avoid;
            break-inside: avoid;
  }
  .lazy-video-poster::after {
    content: "Video: " attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}
@media (hover: none) and (pointer: coarse) {
  .lazy-video-play-button {
    width: 70px;
    height: 70px;
  }
  .lazy-video-play-button svg {
    width: 42px;
    height: 32px;
  }
  .lazy-video-play-button:hover {
    -webkit-transform: none;
            transform: none;
  }
  .lazy-video-play-button:active {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
}
@media (prefers-color-scheme: dark) {
  .lazy-video-block-placeholder {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #555;
  }
  .lazy-video.lazy-error {
    background: #1a1a1a;
    border-color: #555;
  }
}
figure.lazy-video-block,
figure.lazy-video-container,
figure.wp-block-video.lazy-video-block {
  width: 100%;
  height: auto;
  max-width: 100%;
}
figure.lazy-video-block video,
figure.lazy-video-container video,
figure.wp-block-video.lazy-video-block video {
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 383px;
}

@media (width <= 768px) {
  figure.lazy-video-block,
  figure.lazy-video-container,
  figure.wp-block-video.lazy-video-block {
    width: 100% !important;
    height: auto;
    max-width: 100%;
  }
  figure.lazy-video-block video,
  figure.lazy-video-container video,
  figure.wp-block-video.lazy-video-block video {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}