/* ==========================================================================
   A GEMSTONE'S OWN PAGE (/gemstones/<name>-<stock number>)
   The gemstone page (template/page/gems.phtml) with one stone on top of it: the product
   block (seo-product.css), the stones most like it, then the catalogue as it always is.
   Loaded on those pages only, after seo-product.css (VadSeoGems::CSS in
   sec/scripts/php/seo/Gems.php; raise its ?v= with every change here).
   ========================================================================== */

/* --- the block and the catalogue under it -------------------------------- */
/* The block closes with a line and a wide margin where it is followed by plain text. Here the
   next thing is a row of cards or the catalogue's hero, which bring their own edge. */
.page-gems .vad-product{margin-bottom:48px; padding-bottom:0; border-bottom:0;}

/* The hero is drawn to sit against the header: it pulls itself up over the page's top
   padding. Under a stone there is no padding to cover, so it would climb into what is above
   it. It keeps its place and gets the line on top that it already has below. */
.page-gems .vad-product ~ .gems-hero{margin-top:0; border-top:1px solid #e4dbd1;}

/* The hero's heading is the page's h1 on the catalogue. On a stone's page the stone's name is,
   and this is an h2: drawn as .gems-hero h1 in style.css, which .page-gems h2 would undo. */
.page-gems .gems-hero .gems-hero-title{max-width:660px; margin:0 0 20px; color:#2e2a26; font-family:Unna, 'Times New Roman', serif; font-size:clamp(38px, 4.4vw, 56px); font-weight:normal; line-height:1.08;}

/* --- the stones most like this one --------------------------------------- */
/* The cards are the catalogue's own (.gems .gem in style.css). Only their row differs: a
   grid, so that a kind with three other stones does not spread them over the full width. */
.gems-related{margin:0 0 56px;}
	.gems-related .gems-related-list{display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:20px;}
	/* .gems:after fills the last row of the catalogue; in a grid it would be an empty cell. */
	.gems-related .gems-related-list:after{display:none;}
		.gems-related .gems-related-list .gem{width:auto; margin-bottom:0;}

/* --- tablet and phone ---------------------------------------------------- */
@media screen and (max-width:860px){
	.page-gems .vad-product{margin-bottom:40px;}
	.gems-related{margin-bottom:40px;}
}

@media screen and (max-width:780px){
	.gems-related .gems-related-list{grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px;}
}

@media screen and (max-width:680px){
	.page-gems .gems-hero .gems-hero-title{font-size:36px;}
}

@media screen and (max-width:500px){
	.gems-related .gems-related-list{gap:7px;}
}
