/* Grid layout only; square thumbnail styling is shared in assets/shared-components.css via .meh-photo-card. */
/* Only gallery-specific layout and lightbox behavior; shared date and typography classes remain in use. */
.meh-photo-galleries__gallery { margin-bottom: 2rem; }
/* Shared neutral divider treatment: separate gallery groups, never after the last gallery. */
.meh-photo-galleries__gallery + .meh-photo-galleries__gallery { border-top: 1px solid #e6e6e6; padding-top: 2rem; }
@media(max-width:760px) { .meh-photo-galleries__gallery + .meh-photo-galleries__gallery { padding-top: 1.5rem; } }
.meh-photo-galleries__title { margin: 0 0 .35rem; }
.meh-photo-galleries__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: .8rem; }
@media(max-width:760px) { .meh-photo-galleries__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.meh-photo-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 1rem; border: 0; background: rgba(0,0,0,.95); color: #fff; }
.meh-photo-lightbox::backdrop { background: rgba(0,0,0,.95); }
.meh-photo-lightbox__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.meh-photo-lightbox__viewer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; height: calc(100% - 7rem); }
.meh-photo-lightbox__viewer img { display: block; max-width: calc(100% - 6rem); max-height: 100%; object-fit: contain; }
.meh-photo-lightbox button { border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 1.75rem; padding: .5rem; }
.meh-photo-lightbox__caption { text-align: center; font-size: .8rem; margin: .5rem auto; }

/* Existing WordPress caption markup; match the shared 10px caption standard on archive pages. */
.meh-photo-galleries .wp-caption-text { box-sizing: border-box; display: block; margin: 0; padding: 0; background: #eee; color: #666; font-family: "Raleway", sans-serif; font-size: 10px; font-weight: 400; font-style: normal; line-height: 1.4; text-align: left; }

/* Single Photo Gallery: native images at intrinsic ratio, one full-width column. */
.meh-single-photo-gallery__figure { display: block; margin: 0 0 24px; width: 100%; }
.meh-single-photo-gallery__image { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; }
.meh-single-photo-gallery__figure .wp-caption-text { display: block; box-sizing: border-box; margin: 0; padding: 0; font-size: 10px; line-height: 1.4; text-align: left; }
