/* ArtGalleri — početna strana */

.ag-site .hp-intro {
	padding: clamp(12px, 3vw, 40px) 0 48px;
}

.ag-site .hp-eyebrow {
	margin: 0 0 14px;
	color: #527b68;
	font-size: 14px;
	font-weight: 500;
}

.ag-site .hp-intro h1 {
	max-width: 18ch;
	margin: 0 0 20px;
	font-size: clamp(34px, 5vw, 64px);
	line-height: 1.06;
	letter-spacing: -0.045em;
	overflow-wrap: normal;
}

.ag-site .hp-intro-description {
	max-width: 52ch;
	margin: 0 0 22px;
	color: #6e6e73;
	font-size: clamp(16px, 2vw, 20px);
}

.ag-site .hp-text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #0071e3;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}

.ag-site .hp-text-link svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.ag-site .hp-home {
	--hp-gap: 24px;
	min-width: 0;
}

.ag-site .hp-home,
.ag-site .hp-home * {
	box-sizing: border-box;
}

.ag-site .hp-section {
	min-width: 0;
	margin-bottom: clamp(40px, 6vw, 80px);
}

.ag-site .hp-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.ag-site .hp-section-heading h2 {
	margin: 0;
	color: #1d1d1f;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.035em;
}

.ag-site .hp-controls {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.ag-site .hp-controls[hidden] {
	display: none;
}

.ag-site .hp-controls button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #e7e7eb;
	color: #454549;
	font-size: 23px;
	line-height: 1;
	cursor: pointer;
	transition: background 180ms ease;
}

.ag-site .hp-controls button:hover {
	background: #d9d9df;
	color: #1d1d1f;
}

.ag-site .hp-controls button:disabled {
	opacity: 0.35;
	cursor: default;
}

.ag-site .hp-grid {
	display: grid;
	gap: var(--hp-gap);
	align-items: stretch;
}

.ag-site .hp-layout-four .hp-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ag-site .hp-layout-three .hp-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ag-site .hp-layout-two .hp-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ag-site .hp-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: var(--hp-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	padding-bottom: 16px;
	scrollbar-width: thin;
	scrollbar-color: #c5c5cd transparent;
}

.ag-site .hp-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid #e8e8ed;
	border-radius: 26px;
	background: #fff;
	color: #1d1d1f;
	box-shadow: 0 8px 26px rgb(0 0 0 / 4%);
	scroll-snap-align: start;
}

.ag-site .hp-card:hover {
	background: #fff;
	color: #1d1d1f;
}

.ag-site .hp-image-link {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eceef2;
	color: #527b68;
	text-decoration: none;
}

.ag-site .hp-image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 600ms ease;
}

@media (hover: hover) {
	.ag-site .hp-image-link:hover .hp-image {
		transform: scale(1.035);
	}
}

.ag-site .hp-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(18px, 2.5vw, 28px);
}

.ag-site .hp-label {
	max-width: none;
	margin: 0 0 12px;
	color: #82705a;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.ag-site .hp-card h3 {
	max-width: none;
	margin: 0 0 10px;
	font-size: clamp(20px, 2vw, 28px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.025em;
	overflow-wrap: anywhere;
}

.ag-site .hp-card h3 a {
	color: #1d1d1f;
	text-decoration: none;
	background: transparent;
}

.ag-site .hp-card h3 a:hover {
	color: #0071e3;
	background: transparent;
}

.ag-site .hp-author {
	max-width: none;
	margin: 0 0 22px;
	color: #6e6e73;
	font-size: 14px;
}

.ag-site .hp-author a {
	color: inherit;
	text-decoration: none;
	background: transparent;
}

.ag-site .hp-author a:hover {
	color: #0071e3;
	background: transparent;
}

.ag-site a.hp-visit,
.ag-site a.hp-visit:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 8px;
	width: fit-content;
	margin-top: auto;
	padding: 11px 18px;
	border: 0;
	border-radius: 999px;
	background: #0071e3;
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

.ag-site a.hp-visit:hover,
.ag-site a.hp-visit:focus-visible {
	background: #0064ce;
	color: #fff;
	text-decoration: none;
}

.ag-site .hp-visit svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	color: inherit;
}

/* Glavni slider: velika fotografija i tekst pored nje. */

.ag-site .hp-layout-slider .hp-card {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	background: #eef4f8;
}

.ag-site .hp-layout-slider .hp-image-link {
	height: 100%;
	min-height: 420px;
	aspect-ratio: 4 / 3;
}

.ag-site .hp-layout-slider .hp-card-body {
	align-items: flex-start;
	justify-content: center;
	padding: clamp(24px, 4vw, 56px);
}

.ag-site .hp-layout-slider h3 {
	font-size: clamp(30px, 4vw, 50px);
	letter-spacing: -0.04em;
}

.ag-site .hp-layout-slider .hp-visit {
	margin-top: 12px;
}

.ag-site .hp-layout-slider .hp-card:nth-child(3n + 2) {
	background: #edf6f0;
}

.ag-site .hp-layout-slider .hp-card:nth-child(3n + 3) {
	background: #f6f0fa;
}

/* Ateljei — manji horizontalni karusel. */

.ag-site .hp-layout-carousel .hp-track {
	grid-auto-columns: calc((100% - 72px) / 4);
}

.ag-site .hp-layout-carousel .hp-image-link {
	aspect-ratio: 1;
	background: #edf6f0;
}

.ag-site .hp-layout-carousel .hp-card:nth-child(3n + 2) .hp-image-link {
	background: #f1edfa;
}

.ag-site .hp-layout-carousel .hp-card:nth-child(3n + 3) .hp-image-link {
	background: #fff3e6;
}

.ag-site .hp-layout-carousel .hp-card-body {
	align-items: center;
	text-align: center;
}

.ag-site .hp-avatar-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: #527b68;
	font-size: clamp(56px, 7vw, 90px);
	font-weight: 500;
}

/* Animacija se uključuje samo kada JavaScript radi. */

.ag-site .hp-reveal-ready {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 550ms ease, transform 550ms ease;
}

.ag-site .hp-reveal-ready.hp-is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ag-site .hp-home a:focus-visible,
.ag-site .hp-home button:focus-visible,
.ag-site .hp-track:focus-visible {
	outline: 3px solid #0071e3;
	outline-offset: 4px;
}

@media (max-width: 1000px) {
	.ag-site .hp-layout-four .hp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ag-site .hp-layout-carousel .hp-track {
		grid-auto-columns: calc((100% - 48px) / 3);
	}

	.ag-site .hp-layout-slider .hp-image-link {
		min-height: 340px;
	}
}

@media (max-width: 700px) {
	.ag-site .hp-home {
		--hp-gap: 16px;
	}

	.ag-site .hp-intro {
		padding-top: 8px;
		padding-bottom: 32px;
	}

	.ag-site .hp-section-heading {
		align-items: center;
		gap: 12px;
	}

	.ag-site .hp-section-heading h2 {
		font-size: 25px;
	}

	.ag-site .hp-layout-slider .hp-card {
		display: flex;
		flex-direction: column;
	}

	.ag-site .hp-layout-slider .hp-image-link {
		min-height: 0;
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.ag-site .hp-layout-slider .hp-card-body {
		padding: 24px;
	}

	.ag-site .hp-layout-slider h3 {
		font-size: 32px;
	}

	.ag-site .hp-layout-four .hp-grid,
	.ag-site .hp-layout-three .hp-grid,
	.ag-site .hp-layout-two .hp-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-site .hp-layout-carousel .hp-track {
		grid-auto-columns: 76%;
	}

	.ag-site .hp-card {
		border-radius: 22px;
	}

	.ag-site .hp-card-body {
		padding: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ag-site .hp-image,
	.ag-site .hp-reveal-ready {
		transition: none;
	}

	.ag-site .hp-reveal-ready {
		opacity: 1;
		transform: none;
	}
}
/* Paginacija i raspored modula — dopuna */

.ag-site .hp-section {
	scroll-margin-top: 110px;
}

.ag-site .hp-layout-four .hp-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ag-site .hp-layout-three .hp-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Veliki prikaz: dve kartice vidljive, ostale horizontalno. */
.ag-site .hp-layout-two .hp-track {
	grid-auto-columns: calc((100% - var(--hp-gap)) / 2);
}

.ag-site .hp-layout-two .hp-image-link {
	aspect-ratio: 4 / 3;
}

/* Slika ispunjava prostor kartice. */
.ag-site .hp-card .hp-image {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Ikona i tekst dugmeta u istom redu. */
.ag-site .hp-card a.hp-visit,
.ag-site .hp-card a.hp-visit:visited,
.ag-site .hp-card a.hp-visit:hover,
.ag-site .hp-card a.hp-visit:focus-visible {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: auto;
	max-width: 100%;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
}

.ag-site .hp-card a.hp-visit span {
	display: inline;
	width: auto;
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
}

.ag-site .hp-card a.hp-visit svg {
	display: block;
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	color: inherit;
}

/* Navigacija kroz rezultate */
.ag-site .hp-pagination {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 20px;
	margin: 28px 0 0;
	padding: 14px;
	border: 1px solid #e4e8ee;
	border-radius: 20px;
	background: #eef4fa;
}

.ag-site .hp-pagination a,
.ag-site .hp-pagination a:visited,
.ag-site .hp-pagination a:hover,
.ag-site .hp-pagination a:focus-visible {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: auto;
	min-height: 44px;
	margin: 0;
	padding: 4px 7px;
	border: 0;
	background: transparent;
	color: #0071e3;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
}

.ag-site .hp-pagination a:hover {
	color: #005bb5;
}

.ag-site .hp-pagination a span {
	display: inline;
	width: auto;
	white-space: nowrap;
}

.ag-site .hp-page-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 6px 13px;
	border-radius: 999px;
	background: #fff;
	color: #384a5d;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

@media (max-width: 1000px) {
	.ag-site .hp-layout-four .hp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.ag-site .hp-home {
		--hp-gap: 12px;
	}

	.ag-site .hp-layout-four .hp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ag-site .hp-layout-three .hp-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-site .hp-layout-two .hp-track {
		grid-auto-columns: 100%;
	}

	.ag-site .hp-layout-four .hp-card {
		border-radius: 18px;
	}

	.ag-site .hp-layout-four .hp-card-body {
		padding: 12px 10px 16px;
	}

	.ag-site .hp-layout-four .hp-card h3 {
		font-size: 18px;
		line-height: 1.2;
	}

	.ag-site .hp-layout-four .hp-author {
		font-size: 13px;
		margin-bottom: 16px;
	}

	.ag-site .hp-layout-four .hp-label {
		font-size: 10px;
	}

	.ag-site .hp-layout-four a.hp-visit {
		gap: 5px;
		padding: 9px 8px;
		font-size: 12px;
	}

	.ag-site .hp-layout-four a.hp-visit svg {
		flex-basis: 14px;
		width: 14px;
		height: 14px;
	}

	.ag-site .hp-pagination {
		gap: 6px 10px;
		padding: 10px;
	}
}
.ag-site .hp-default-description {
	margin: 0 0 20px;
	color: #6e6e73;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

@media (max-width: 700px) {
	.ag-site .hp-default-description {
		font-size: 13px;
	}
}