/* ==========================================================================
   Inspired Designs Section — front-end styles
   ========================================================================== */

.ids-section {
	max-width: 1380px;
	margin: 0 auto;
	padding: 20px 15px;
	box-sizing: border-box;
}

.ids-section *,
.ids-section *::before,
.ids-section *::after {
	box-sizing: border-box;
}

.ids-section-title {
	text-align: center;
	margin: 0 0 30px;
}

/* Two-panel layout: large featured left, grid right.
   The row height is driven by the thumbnail grid; the featured panel
   stretches to exactly match it, so both sides are always equal height.
   -------------------------------------------------------------------- */
.ids-layout {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 24px;
	align-items: stretch;
}

/* Featured (left) panel
   -------------------------------------------------------------------- */
.ids-featured {
	position: relative;
}

.ids-featured-frame {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 10px;
	background: #f4f4f4;
	cursor: zoom-in;
}

.ids-featured-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease, opacity 0.25s ease;
	will-change: transform;
}

/* Zoom on hover — transform-origin follows the cursor (set by JS). */
.ids-zoom:hover .ids-featured-img {
	transform: scale(1.9);
}

.ids-featured-img.is-fading {
	opacity: 0;
}

/* Thumbnail grid (right) — 2 columns
   -------------------------------------------------------------------- */
.ids-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.ids-thumb {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #f4f4f4;
	cursor: pointer;
	aspect-ratio: 1 / 1;
	-webkit-appearance: none;
	appearance: none;
}

.ids-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ids-thumb:hover img {
	transform: scale(1.07);
}

/* Overlay shown on the currently-active thumbnail (gold tint, like design) */
.ids-thumb-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: rgba(163, 128, 44, 0.55);
	color: #fff;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.ids-thumb-overlay::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 8px;
}

.ids-thumb.is-active .ids-thumb-overlay {
	opacity: 0;
}

button.ids-thumb:hover .ids-thumb-overlay {
    opacity: 1;
}

.ids-thumb-plus {
	font-size: 30px;
	line-height: 1;
	font-weight: 300;
}

.ids-thumb-text {
	font-size: 16px;
	letter-spacing: 1.5px;
	font-weight: 400;
	font-family: 'Lato';
}

/* Responsive
   -------------------------------------------------------------------- */
@media (max-width: 980px) {
	.ids-layout {
		grid-template-columns: 1fr;
	}

	/* Stacked: the featured panel needs its own height again. */
	.ids-featured-frame {
		position: relative;
		inset: auto;
		aspect-ratio: 1 / 1;
	}
}

@media (max-width: 480px) {
	.ids-grid {
		gap: 14px;
	}

	.ids-thumb-text {
		font-size: 10px;
	}
}
