/*
/* --------------------------------------------------------
Theme Name: SiteOrigin Corp (child)
/* --------------------------------------------------------
Description: Grids (machine-grid), Posts, attachments  (B+S)
Version: 1.1
Author: px
Author URI: http://www.peki.at
Template: (generic)
/* --------------------------------------------------------
/* 250822: machine related stuff
/* 250827: grids cleanup (wp, media, bs)
/* 250828: fix and finished v#1
/* 250831: fix: footer gallery-item: width, missing bracket
/* 250902: cleanup, attachment/image-display (overlay)
/* --------------------------------------------------------
/* - SO image-grid wrapper CSS - */
/*
.sow-image-grid-wrapper{text-align:center}
.sow-image-grid-wrapper .sow-image-grid-image{display:inline-block}
.sow-image-grid-wrapper .sow-image-grid-image img{display:none;max-width:100%;height:auto}
*/


.hidden {
	display: none !important;
}


/* --------------------------------------- */
/* --- Filter Bars /Areas ---
/* --------------------------------------- */
.filter-area {
	border: solid 0px #ccc;
	background: #fffefd;
}

div.filter-area > a {
	color: #666;
	text-decoration-color: white;
	min-width: 20%;
	display: inline-block:
}


/* --------------------------------------- */
/* --- Attachment ---
/* --------------------------------------- */
.attachment-nav {
	border: dotted 0 #eee;
	margin: 10px 3px 20px 3px;
	padding: 5px;
}

.attachment-nav > a {
	min-width: 50%;
	display: inline-block;
	border: dotted 0 #ccc;
   color: #007cba !important;
	float: left;
   text-decoration: none;
}

.attachment-nav > a.machines-overview {
 	align: right;
	text-align: right;
}

.attachment-nav > a:hover {
   color: #007cba;
	text-decoration-color: #68c1fc;
}


/* --------------------------------------- */
/* --- Blog Layout---
/* --------------------------------------- */
/* "overqualified": div.blog-layout-alternate img { .. */
.blog-layout-alternate img {
	background: #fff;
	border: solid 0 red !important;
	padding: 10px 0 0 0;
}


/* --------------------------------------- */
/* --- entry-thumbnail ---
/* --------------------------------------- */
/* (image in posts, excerpts, post-loops)  */
/* --------------------------------------- */
article.post > div.entry-thumbnail > a > img
/* article.post > div.sow-entry-thumbnail > a > img */
/* article.type-attachment > div.sow-entry-thumbnail > img */
/* article.type-maschinen > div.entry-thumbnail > img - zieht auch bei single-maschinen! */
{
	background: #fff;
	border: solid 1px #ddd;
	margin: 0;
	padding: 10px 0 0 10px;
}

div.blog-layout-alternate > article.post > div.entry-thumbnail {
	border: solid 1px #ddd;
	padding: 0;
}


/* --------------------------------------- */
/* --- B+S BASE GRID (machine.grid) --- */
/* --------------------------------------- */
.machine-grid {
  display: grid;
  gap: 10px;
  margin: 0 auto;
  max-width: 1200px;
}

/* --------------------------- */
/* - media grid -  */
/* --------------------------- */
/* used by: taxonomy
/* 250902: für medien/zubehör grid? */
/* --------------------------- */
.media-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	margin-top: 2rem;
}


.machine-grid.columns-2 {
	grid-template-columns: repeat(2, 1fr);
}
.machine-grid.columns-3 {
	grid-template-columns: repeat(3, 1fr);
}
.machine-grid.columns-4 {
	grid-template-columns: repeat(4, 1fr);
}


/* --------------------------------------- */
/* v#1 GRIDs (mostly obsolete)  --- */
/* --------------------------------------- */
/* 1) WP built-in gallery */
/*
.gallery {
	display: grid;
	gap: 10px; /* spacing between tiles - unvalid lt. css validator *
 	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin: 10px 0 0 0;
	padding: 0;
}
*/

/* 2) gallery grid - (custom , from gc_gallery!) */
/*
.machine-grid,
gallery-grid {
	display: grid;
	gap: 10px; /* spacing between tiles - unvalid lt. css validator
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	max-width: 1200px;   /* caps total width
}
*/
/* --------------------------------------- */


/* --- figure (tag)--- */
.machine-item,
.media-item {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column; /* stack image + text */
}


/* ------------------------------------------ */
/* --- 'post'-content (div inside figure) --- */
/* ------------------------------------------ */
/* RENAMED FROM: .machine-image { ... */
.machine-content,
.media-content
{
	border: solid 1px #ccc;		/* steuert ALLE grid items */
	margin: 3px;
	overflow: hidden;
}

.machine-content img,
.media-content img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.machine-title {
	margin: 0.5em 0 0.2em;
	font-size: 1rem;
}

.machine-excerpt {
	margin: 0;
	font-size: 0.875rem;
	color: #666;
}


/* --------------------------------------------- */
/* --- B+S Grids display--- */
/* --------------------------------------------- */
.machine-weitere-ansichten {
	border: solid 1px #ccc;
	margin: 0px;
	overflow: hidden;
}

.machine-supplies {
	border: solid 0 #999;
}


/* --------------------------------------------- */
/* --- SUPPLIES OVERLAY for media-item --- */
/* --------------------------------------------- */
/* Add this to your existing machines.css */
/* Base overlay - hidden by default */
/* -------------------------------- */
.media-item .supply-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	/* background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3)); */
	background: rgba(30, 30, 0, 0.55);
	color: white;
	padding: 12px;
	transform: translateY(100%);
	transition: transform 0.35s ease;
}

/* Show overlay on hover */
.media-item:hover .supply-overlay {
	transform: translateY(0);
}


/* Text styling */
.supply-title {
	display: block;
	font-size: 0.88rem;
	font-weight: 400;
	line-height: 1.2;
	margin-bottom: 4px;
}


/* Make media-content relative for positioning */
.media-content {
	position: relative;
	overflow: hidden;
}

/* Slight zoom on hover */
.media-item:hover img {
	transform: scale(1.03);
	transition: transform 0.5s ease;
}


/* --------------------------------------------- */
/* --- MACHINE OVERLAY (same style as supplies) --- */
/* --------------------------------------------- */
/* Add this to your machines.css */

/* Make entry-thumbnail relative for positioning */
.archive-machine .entry-thumbnail {
   position: relative;
   overflow: hidden;
	border: solid 1px #ccc;
	margin: 10px 0 0 0;
}

/* Base overlay - hidden by default */
.archive-machine .supplies-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(30, 30, 0, 0.55);
	color: white;
	padding: 12px;
	transform: translateY(100%);
	transition: transform 0.35s ease;
	z-index: 10; /* Ensure overlay is above image */
}

/* Show overlay on hover */
.archive-machine:hover .supplies-overlay {
    transform: translateY(0);
}

/* Ensure image doesn't cover overlay */
.archive-machine .entry-thumbnail img {
    position: relative;
    z-index: 1;
}

/* Text styling inside overlay */
.archive-machine .supplies-overlay .entry-title {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: white;
}

.archive-machine .supplies-overlay .entry-machine-type {
    font-size: 0.85rem;
    opacity: 0.9;
    color: #f0f0f0;
}

.archive-machine .supplies-overlay .entry-divider {
    width: 30px;
    height: 2px;
    background: #fff;
    margin: 8px 0;
}

/* Slight zoom on hover */
.archive-machine:hover img {
    transform: scale(1.03);
    transition: transform 0.5s ease;
}



/* --------------------------------------------- */
/* Machine Gallery Styles */
/* --------------------------------------------- */
/* 250827: was used in content-maschinen (OOO)
.machine-gallery-preview {
	overflow: hidden;
	position: relative;
}

.machine-gallery-preview:hover img {
	transform: scale(1.05);
	transition: transform 0.3s ease;
}
*/


/* --------------------------------------------- */
/* --- footer (is SO-Grid!) --- */
/* --------------------------------------------- */
footer .gallery figure.gallery-item {
  margin: 0 0 7px 0;
  max-width: 44%;
}

footer .gallery .gallery-item img {
  aspect-ratio: 1 / 1; /* square thumbnails only in footer */
  border: solid 1px #eee;
  box-sizing: border-box;
  object-fit: cover;
  max-width: 90%;
  margin: 0;
}



/* --------------------------------------- */
/* Images INSIDE tiles */
/* --------------------------------------- */
/* gallery-ITEM?, why not gallery-ICON */
/* .gallery-item img { */
/* ------------------- */
.gallery-icon img { */
	height: auto;
	margin-bottom: 0; 													/* remove WP's default 5px gap */
	transition: transform 0.2s ease, opacity 0.2s ease;		/* Reset default hover effects */
	max-width: 100%;
}


/* ------------------------------- */
/* Simple zoom + shadow on hover */
/* ------------------------------- */
/* .gallery-item:hover img { */
/* ------------------------------- */
.gallery-icon:hover img {
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	filter: brightness(130%);
	transition: transform 0.4s ease;
	/*opacity: 0.65; */
	/*transform: scale(1.05); */
}


/* --------------------------------------- */
/* --- FIGURE - gallery item ---
/* --------------------------------------- */
/* ?? this too or remove fully ?? */
/* ?? figure.machine-item         */
/* ------------------------------ */
figure.gallery-item {
	border-radius: 0;
/*	display: flex;  */
	margin: 0; 		/* WP injects margin sometimes */
	overflow: hidden;
	padding: 0;
}



/* --------------------------------------------- */
/* Responsive Adjustments */
/* --------------------------------------------- */
@media (max-width: 768px) {

	.machine-grid,
	.gallery-grid {
	  grid-template-columns: repeat(2, 1fr);
	}


	.machine-quick-specs {
	  justify-content: center;
	}

	.pricing-grid {
	  /* grid-template-columns: 1fr; */
	}

	.machine-excerpt-info {
	  align-items: flex-start;
	  flex-direction: column;
	  gap: 8px;
	}
}



/* --------------------------------------------- */
/* --- Excerpt Enhancements --- */
/* --------------------------------------------- */
.machine-excerpt-info {
	margin-top: 15px;
	display: flex;
	gap: 15px;
	align-items: center;
}

/* 250831: derzeit nicht in Verwendung ---
.excerpt-spec {
	background: #e3f2fd;
	color: #1976d2;
	padding: 4px 12px;
	border-radius: 0px;
	font-size: 13px;
}

.excerpt-price {
	background: #e8f5e8;
	color: #2e7d32;
	padding: 4px 12px;
	border-radius: 0px;
	font-weight: bold;
	font-size: 14px;
}
------------------------------------------------ */




/* --------------------------------------------- */
/* --- EOF machines.css (B+S) */
/* --------------------------------------------- */

/* ------------------------------- */
/* - parsing checker */
/* ------------------------------- */
footer::after {
  content: none; /* disables output */
/* content: 'machines.css (BS) fully parsed!'; /* ? enables output */
  color: green;
  background: white;
  display: flex;
  padding: 2px;
  position: absolute;
  top: 10px;
  left: 10px;
}

/* ------------------------------- */
/* cascades not valid acc to WP Wizard
footer:after {
	content: 'machines.css (BS) fully parsed!' {
 		color: red;
		background: white;
		display: block;
	}
}
/* ------------------------------- */
/* hardcore-checker */
/* ------------------------------- */
/*
body{	border: solid 10px red !important; }
*/



/* --------------------------------------- */
/* OLD (pseudo) GRIDS: Force Wrapper into a GRID */
/* --------------------------------------- */
/* 250831: no piggy backing SO-image-grid, any more
/* --------------------------------------- */
/**
.sow-image-grid-wrapper {
	display: grid;
/*	grid-template-columns: repeat(3, 1fr); /* force 3 cols */
/*	gap: 12px; /* same vertical + horizontal gap */
}

/* Reset figure/divs inside */
/*
.sow-image-grid-wrapper > * {
	margin: 0; 	/* kill random margins
}


/* --------------------------------------- */
/* Only apply to gallery shortcodes inside post content */
/*
.entry-content .gallery-columns-2 .gallery-item {
  max-width: 50%;
}
.entry-content .gallery-columns-3 .gallery-item {
  max-width: 30%;
}
*/


/* --------------------------------------- */
/* --- grid columns */
/* --------------------------------------- */
/* OHNE ??=???? child combinator: der scaled da image kleiner! im footer!
/* whr.scheinl. weil item nicht direct descendant ist und die % sich so nicht aufs ges. grid, sondern den inner container beziehen */
/*
.gallery-columns-2 > .gallery-item {
	max-width: 42% !important;
/*	width: 42% !important;
}
.gallery-columns-3 > .gallery-item {
	max-width: 30% !important;
}
*/
/* --- sollte so schon in SO-css definiert sein ---
.gallery-columns-3 .gallery-item {
  max-width: 33.33%;
  float: left;
}
*/


/* --------------------------------------- */
/* --- Footer Gallery Widget Fixes --- */
/* --------------------------------------- */
/* Target gallery items inside footer gallery widgets */
/* -----------------------------------------
/* Only affect gallery items inside footer widgets */
/* OLD: dont bite: footer .widget_media_gallery .gallery */
/* -----------------------------------------*/
/*
x-footer .widget_media_gallery .gallery.gallery-columns-2 {
 	grid-template-columns: repeat(auto-fit, 2fr));
	margin: 0;
}

x-footer .widget_media_gallery .gallery.gallery-columns-2 .gallery-item {
	box-sizing: border-box;
	display: contents !important;
	margin: 0 2% 2% 0; 	/* optional tidy spacing
	width: 100%;
}

x-footer .widget_media_gallery .gallery .gallery-item .gallery-icon img {
	aspect-ratio: 1 / 1;
	border: solid 2px red !important;
	height: auto;
	margin: 0;
	width: 100%;
}
*/
