/* Aavi: the Beach page (/nileshwar-beach-kerala/). A file of its own, because Tailwind reads the page templates
   and not .css files: nothing here adds a class to any site's Tailwind CSS. It sits on top of aavi-stay-guide.css,
   which gives the photo tiles, the thin-lined boxes, the icon rows and the index beside the text.
   Fonts, colours, labels and buttons come from the site's own classes in the template; this file holds layout only.
   Why it exists: the owner's beach photos are upright (phone photos, 3:4 and 4:5), and they are shown whole. */

/* The four tiles at the top stand upright here, so an upright photo keeps its subject. */
.bp-tiles img{aspect-ratio:4/5}

/* Whole photos side by side, two of one shape (the stream and the fishermen). Tops line up, so captions of
   different lengths hang below instead of pushing one photo up. */
.bp-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;align-items:start;margin:0}
.bp-row figure,.bp-grid figure{margin:0}
.bp-row img,.bp-one img,.bp-grid img{display:block;width:100%;height:auto}
.bp-row figcaption,.bp-one figcaption,.bp-side figcaption,.bp-grid figcaption{font-size:.875rem;line-height:1.4;padding-top:.5rem}
.bp-one{margin:0}

/* One frame for a group (Jaseem, 1 Dec 2026: photos of different heights together broke the balance). Every photo
   in a .bp-grid has the same 4:5 frame; the template sets which part of each photo the frame keeps (object-position),
   chosen by eye. Two across on a phone, three across from 768 px with .bp-grid-3; on a phone a last photo left on its
   own takes the whole width. Videos and the landscape photo stay outside, whole. */
.bp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;align-items:start;margin:0}
.bp-grid img{aspect-ratio:4/5;object-fit:cover}
@media (min-width:768px){.bp-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:767px){.bp-grid>figure:last-child:nth-child(odd){grid-column:1/-1}}

/* An upright photo or video with its words beside it from 768 px; above the words on a phone, at the left edge of the
   text (site rule, 1 Dec 2026: a photo narrower than its column is never centred). */
.bp-side{display:grid;grid-template-columns:1fr;gap:1.25rem}
.bp-side>figure{margin:0;width:75%;max-width:20rem}
.bp-side-text>*+*{margin-top:1.25rem}
@media (min-width:768px){
.bp-side{grid-template-columns:17.5rem minmax(0,1fr);gap:2rem;align-items:start}
.bp-side>figure{width:100%;max-width:none}
}
