/* Portfolio-specific presentation. Shared child-page layout lives in team.css. */

.intro-section {
  text-align: left;
}

.videos-section,
.photos-section {
  max-width: 1200px;
  margin: 60px auto;
}

.videos-container,
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

.video-card,
.photo-card {
  height: 100%;
}

.video-card {
  width: 100%;
  padding: 0;
  border: 0;
  display: block;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
}

.photo-card {
  width: 100%;
  padding: 0;
  border: 0;
  display: block;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
}

.video-placeholder,
.photo-placeholder {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.video-placeholder {
  background: linear-gradient(135deg, var(--dark-green), var(--olive-green));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 45, 9, 0.18) 0%, rgba(24, 45, 9, 0.32) 48%, rgba(24, 45, 9, 0.75) 100%);
  transition: background-color 0.3s ease, opacity 0.3s ease;
  z-index: 1;
}

.video-card:hover .video-placeholder::before,
.video-card:focus-visible .video-placeholder::before {
  background: rgba(0, 0, 0, 0.4);
}

.video-preview,
.video-preview-copy,
.play-icon {
  position: relative;
}

.video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.video-card:hover .video-preview,
.video-card:focus-visible .video-preview {
  transform: scale(1.05);
}

.video-preview-copy,
.video-placeholder p,
.play-icon {
  position: relative;
  z-index: 2;
}

.video-preview-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  text-align: center;
}

.video-preview-copy p {
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.play-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 0;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.video-card:hover .play-icon,
.video-card:focus-visible .play-icon {
  transform: scale(1.15);
  background-color: var(--white);
}

.video-card:focus-visible {
  outline: 3px solid rgba(234, 170, 0, 0.85);
  outline-offset: 4px;
}

.video-card .video-info p {
  margin-bottom: 0;
}

.video-meta {
  color: var(--gold) !important;
  font-size: 12px !important;
  font-weight: bold;
}

.photo-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.photo-placeholder {
  background: linear-gradient(135deg, #eeeeee, #d8d8d8);
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-photo-card .photo-placeholder {
  height: 180px;
  padding: 0;
  line-height: 0;
  isolation: isolate;
}

.service-photo-card .photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-photo-card .photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 45, 9, 0.12) 0%, rgba(24, 45, 9, 0.22) 46%, rgba(24, 45, 9, 0.78) 100%);
  z-index: 1;
}

.photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark-green), var(--olive-green));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-placeholder::after {
  opacity: 0.3;
}

.photo-overlay-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px 18px 18px;
  color: var(--white);
  pointer-events: none;
}

.photo-overlay-copy span {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.photo-caption {
  padding: 18px;
}

.photo-caption h4 {
  color: var(--dark-green);
  font-size: 18px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.photo-card:hover .photo-caption h4 {
  color: var(--gold);
}

.photo-caption p {
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.6;
}

.photo-card .photo-caption p {
  margin-bottom: 0;
}

.photo-card:focus-visible {
  outline: 3px solid rgba(234, 170, 0, 0.85);
  outline-offset: 4px;
}

.cta-section {
  max-width: 800px;
  margin: 70px auto 20px;
  padding: 45px 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dark-green), var(--olive-green));
  color: var(--white);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-section h2 {
  color: var(--gold);
  font-size: 32px;
  margin-bottom: 14px;
}

.cta-section p {
  margin-bottom: 24px;
}

.cta-button {
  display: inline-block;
  padding: 14px 34px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background-color: var(--gold);
  color: var(--dark-green);
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--gold);
}

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

body.modal-open {
  overflow: hidden;
}

.video-modal[hidden] {
  display: none !important;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 15, 5, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal-dialog {
  width: min(960px, 100%);
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s ease;
}

.video-modal.is-open .video-modal-dialog {
  transform: translateY(0) scale(1);
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 31, 7, 0.78);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
  background: var(--gold);
  color: var(--dark-green);
  transform: scale(1.06);
  outline: none;
}

.video-modal-media {
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-modal-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.video-modal-header h3 {
  color: var(--dark-green);
  font-size: 28px;
  margin-bottom: 8px;
}

.video-modal-header p {
  color: var(--muted-text);
  font-size: 15px;
  line-height: 1.6;
}

.video-modal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.video-control-btn {
  min-height: 46px;
  border-radius: 999px;
}

.video-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0 16px;
  background: var(--dark-green);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.video-control-btn:hover,
.video-control-btn:focus-visible {
  background: var(--gold);
  color: var(--dark-green);
  transform: translateY(-2px);
  outline: none;
}

.video-control-btn--accent {
  background: var(--gold);
  color: var(--dark-green);
}

.video-control-btn--accent:hover,
.video-control-btn--accent:focus-visible {
  background: var(--olive-green);
  color: var(--white);
}
.video-seek {
  accent-color: var(--gold);
}

.video-modal-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-seek {
  width: 100%;
}

.video-time {
  align-self: flex-end;
  color: var(--muted-text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.photo-modal[hidden] {
  display: none !important;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 15, 5, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.photo-modal-dialog {
  width: min(1040px, 100%);
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s ease;
}

.photo-modal.is-open .photo-modal-dialog {
  transform: translateY(0) scale(1);
}

.photo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 31, 7, 0.78);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.photo-modal-close:hover,
.photo-modal-close:focus-visible {
  background: var(--gold);
  color: var(--dark-green);
  transform: scale(1.06);
  outline: none;
}

.photo-modal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0b1407;
}

.photo-modal-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: 12px;
}

.photo-modal-body {
  padding: 20px 24px 24px;
}

.photo-modal-header h3 {
  color: var(--dark-green);
  font-size: 28px;
  margin-bottom: 8px;
}

.photo-modal-header p {
  color: var(--muted-text);
  font-size: 15px;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .videos-section,
  .photos-section {
    margin: 45px auto;
  }

  .cta-section {
    margin-top: 50px;
    padding: 35px 20px;
  }
}

@media screen and (max-width: 480px) {
  .videos-section,
  .photos-section,
  .cta-section {
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
  }

  .videos-container,
  .photos-grid {
    grid-template-columns: 1fr;
  }

  .video-placeholder,
  .photo-placeholder {
    height: 190px;
  }

  .service-photo-card .photo-placeholder {
    height: 170px;
  }

  .video-preview-copy p {
    font-size: 20px;
  }

  .photo-overlay-copy span {
    font-size: 20px;
  }

  .cta-section h2 {
    font-size: 24px;
  }

  .cta-button {
    padding: 12px 24px;
  }

  .video-modal {
    padding: 14px;
  }

  .photo-modal {
    padding: 14px;
  }

  .video-modal-body {
    padding: 18px;
  }

  .photo-modal-media {
    padding: 14px;
  }

  .photo-modal-body {
    padding: 18px;
  }

  .video-modal-header h3 {
    font-size: 22px;
  }

  .photo-modal-header h3 {
    font-size: 22px;
  }

  .video-control-btn {
    width: 100%;
    justify-content: center;
  }
}
