/* Centering without flex → using CSS Grid */
.audio-wrapper {
    display: grid;
    place-items: center;  /* centers vertically AND horizontally */
    padding: 20px;        /* improves responsiveness on very small screens */
}

/* Responsive column container (no flex) */
.audio-list {
    width: 100%;
    max-width: 420px;
}

/* Spacing between each track */
.audio-item {
    margin-bottom: 30px;
}

/* Headings and descriptions */
.audio-heading {
    font-size: 18px;
    font-weight: 700;
    color: #FFC0CB;
    margin-bottom: 6px;
}

.audio-description {
	text-align: center;
    font-size: 14px;
    color: #FFF;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Audio player – iPhone-safe */
audio {
    width: 100%;
	min-width: 0;
    height: 100px;  /* prevents play button cutoff on iOS */
	outline: none;
}

	.gallery .vid {
      margin: 30px;
    text-align: center;
      }

    /* --- GRID LAYOUT --- */
    .video-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 24px;
      align-items: start;
    }

    /* --- RESPONSIVE IFRAME WRAPPER --- */
    .iframe-wrapper {
      position: relative;
      width: 100%;
      overflow: hidden;
      background: #000;
    }

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

    /* --- ASPECT RATIOS --- */
    .ratio-16x9 {
      padding-top: 56.25%; /* 9 / 16 */
    }
    .ratio-4x3 {
      padding-top: 75%; /* 3 / 4 */
    }
    .ratio-1x1 {
      padding-top: 100%;
    }
    .ratio-21x9 {
      padding-top: 42.85%;
    }

    /* --- TITLE & CAPTION --- */
    .video-info {
      padding: 16px 18px 20px;
    }

    .video-info h2 {
      margin: 0 0 8px;
      font-size: 1.1em;
      color: #FFF;
    }

    .video-info p {
      margin: 0;
      color: #FFF;
      font-size: 0.9em;
      line-height: 1.4;
    }

    /* --- MEDIA QUERIES --- */
    @media (max-width: 600px) {
      body {
        padding: 10px;
      }
      .video-info {
        padding: 14px;
      }
    }
    
    /* --- GRID LAYOUT --- */
    .image-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      align-items: start;
    }

    /* --- IMAGE CARD --- */
    .image-card {
      border-radius: 10px;
      overflow: visible;
      display: flex;
      flex-direction: column;
    }

    /* --- IMAGE WRAPPER --- */
    .image-wrapper {
      position: relative;
      width: 100%;
      background: #000;
      height: auto;      
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .image-wrapper img {
      width: 100%;
      height: auto;
      object-fit: cover;       /* fills box neatly */
      display: block;
    }

    /* --- CAPTION AREA --- */
    .image-info {
      padding: 14px 16px 18px;
    }

    .image-info h2 {
      margin: 0 0 8px;
      font-size: 1.1em;
      color: #FFF;
    }

    .image-info p {
      margin: 0;
      color: #FFF;
      font-size: 0.9em;
      line-height: 1.4;
    }

    /* --- MOBILE TWEAKS --- */
    @media (max-width: 600px) {
      .image-wrapper {
    max-height: none; /* Allow natural height */
    aspect-ratio: auto; /* Let image adjust naturally */
  }
}

    @media (max-width: 600px) {
      .image-wrapper img {
    object-fit: contain; /* don’t crop too aggressively */
  }
}
    