/*
 * Album category archive (.hedva-albums-archive) and album post (.hedva-album).
 * Loaded only on those requests. Selectors are doubled where needed to beat
 * the Elementor kit rules (.elementor-kit-5 a, .elementor-kit-5 h1, ...).
 */

/* ---------- Shared ---------- */

.hedva-albums-archive,
.hedva-album-main {
	background-color: #fff;
	color: #000;
	font-family: "Open Sans", Arial, sans-serif;
	overflow-wrap: break-word;
}

.hedva-albums-archive *,
.hedva-albums-archive *::before,
.hedva-albums-archive *::after,
.hedva-album-main *,
.hedva-album-main *::before,
.hedva-album-main *::after {
	box-sizing: border-box;
}

/* ---------- Archive ---------- */

.hedva-albums-archive .hedva-albums-archive__inner {
	max-width: 992px;
	margin: 0 auto;
	padding: 10px 0 80px;
}

.hedva-albums-archive .hedva-albums-archive__header {
	padding: 0 10px;
}

.hedva-albums-archive .hedva-albums-archive__title {
	margin: 0 0 40px;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	color: #000;
}

.hedva-albums-archive .hedva-albums-archive__body {
	margin-top: 48px;
	padding: 0 10px;
}

.hedva-albums-archive .hedva-albums-archive__description {
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
	text-align: start;
}

.hedva-albums-archive .hedva-albums-archive__description > :first-child {
	margin-top: 0;
}

.hedva-albums-archive .hedva-albums-archive__description p,
.hedva-albums-archive .hedva-albums-archive__description ul,
.hedva-albums-archive .hedva-albums-archive__description ol,
.hedva-albums-archive .hedva-albums-archive__description blockquote {
	margin: 0 0 14px;
}

.hedva-albums-archive .hedva-albums-archive__description ul,
.hedva-albums-archive .hedva-albums-archive__description ol {
	padding-inline-start: 1.25em;
}

.hedva-albums-archive .hedva-albums-archive__description h2,
.hedva-albums-archive .hedva-albums-archive__description h3,
.hedva-albums-archive .hedva-albums-archive__description h4 {
	margin: 32px 0 16px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 1.5px;
	color: #000;
}

.hedva-albums-archive .hedva-albums-archive__description h2 {
	font-size: 26px;
}

.hedva-albums-archive .hedva-albums-archive__description h3 {
	font-size: 22px;
}

.hedva-albums-archive .hedva-albums-archive__description h4 {
	font-size: 20px;
}

.hedva-albums-archive .hedva-albums-archive__description a {
	color: #000;
	font-weight: inherit;
	text-decoration: underline;
}

.hedva-albums-archive .hedva-albums-archive__description a:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.hedva-albums-archive .hedva-albums-archive__subtitle {
	margin: 40px 0;
	padding: 14px 16px;
	background-color: #f5f5f5;
	font-size: 28px;
	font-weight: 500;
	line-height: 28px;
	letter-spacing: 2.2px;
	color: #000;
}

.hedva-albums-archive .hedva-albums-archive__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0 10px;
	list-style: none;
}

.hedva-albums-archive .hedva-albums-archive__item {
	margin: 0;
	padding: 0;
}

.hedva-albums-archive .hedva-albums-archive__link {
	display: block;
	aspect-ratio: 530 / 352;
	overflow: hidden;
	background-color: #f5f5f5;
	color: #000;
	text-decoration: none;
}

.hedva-albums-archive .hedva-albums-archive__link:focus-visible,
.hedva-albums-archive .hedva-albums-archive__card:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

.hedva-albums-archive .hedva-albums-archive__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #000;
	text-decoration: none;
}

.hedva-albums-archive .hedva-albums-archive__thumb {
	display: block;
	aspect-ratio: 530 / 352;
	overflow: hidden;
	background-color: #f5f5f5;
}

.hedva-albums-archive .hedva-albums-archive__thumb--empty {
	border-bottom: 1px solid #e5e5e5;
}

.hedva-albums-archive .hedva-albums-archive__card-title {
	display: flex;
	flex: 1 0 auto;
	align-items: center;
	justify-content: center;
	padding: 12px 10px;
	background-color: #f5f5f5;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	color: #000;
}

.hedva-albums-archive .hedva-albums-archive__card:hover .hedva-albums-archive__card-title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hedva-albums-archive .hedva-albums-archive__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hedva-albums-archive .hedva-albums-archive__card:hover .hedva-albums-archive__image,
.hedva-albums-archive .hedva-albums-archive__link:hover .hedva-albums-archive__image {
	opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
	.hedva-albums-archive .hedva-albums-archive__image {
		transition: opacity 0.2s ease;
	}
}

.hedva-albums-archive .hedva-albums-archive__link--no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	text-align: center;
}

.hedva-albums-archive .hedva-albums-archive__fallback {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.hedva-albums-archive .hedva-albums-archive__empty {
	font-size: 20px;
	line-height: 30px;
	text-align: center;
}

.hedva-albums-archive .hedva-albums-archive__pagination {
	margin-top: 40px;
	padding: 0 10px;
}

.hedva-albums-archive .hedva-albums-archive__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.hedva-albums-archive .hedva-albums-archive__pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 6px 10px;
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	text-align: center;
	text-decoration: none;
	color: #000;
}

.hedva-albums-archive .hedva-albums-archive__pagination a.page-numbers:hover {
	text-decoration: underline;
}

.hedva-albums-archive .hedva-albums-archive__pagination .page-numbers.current {
	background-color: #000;
	color: #fff;
}

.hedva-albums-archive .hedva-albums-archive__pagination a.page-numbers:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

.hedva-albums-archive .hedva-albums-archive__pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1024px) {
	.hedva-albums-archive .hedva-albums-archive__inner {
		padding-right: 20px;
		padding-left: 20px;
	}

	.hedva-albums-archive .hedva-albums-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0;
	}

	.hedva-albums-archive .hedva-albums-archive__header,
	.hedva-albums-archive .hedva-albums-archive__body,
	.hedva-albums-archive .hedva-albums-archive__pagination {
		padding: 0;
	}
}

@media (max-width: 767px) {
	.hedva-albums-archive .hedva-albums-archive__inner {
		padding-bottom: 56px;
	}

	.hedva-albums-archive .hedva-albums-archive__body {
		margin-top: 36px;
	}

	.hedva-albums-archive .hedva-albums-archive__title {
		margin-bottom: 24px;
		font-size: 28px;
	}

	.hedva-albums-archive .hedva-albums-archive__subtitle {
		margin: 32px 0 24px;
		font-size: 24px;
		line-height: 1.2;
	}

	.hedva-albums-archive .hedva-albums-archive__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hedva-albums-archive .hedva-albums-archive__card-title {
		font-size: 17px;
	}
}

/* ---------- Album post ---------- */

.hedva-album .hedva-album__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 20px;
	align-items: start;
	max-width: 1140px;
	margin: 0 auto;
	padding: 20px 10px 80px;
	/* Column placement is set physically below; children restore their own direction. */
	direction: ltr;
}

.hedva-album--rtl .hedva-album__layout {
	grid-template-areas: "gallery text";
}

.hedva-album--ltr .hedva-album__layout {
	grid-template-areas: "text gallery";
}

.hedva-album--rtl .hedva-album__layout > * {
	direction: rtl;
}

.hedva-album--ltr .hedva-album__layout > * {
	direction: ltr;
}

.hedva-album--no-gallery.hedva-album--rtl .hedva-album__layout {
	grid-template-areas: ". text";
}

.hedva-album--no-gallery.hedva-album--ltr .hedva-album__layout {
	grid-template-areas: "text .";
}

.hedva-album .hedva-album__text {
	grid-area: text;
	min-width: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
	text-align: start;
}

.hedva-album .hedva-album__gallery {
	grid-area: gallery;
	display: flex;
	flex-direction: column;
	gap: 15px;
	min-width: 0;
}

.hedva-album .hedva-album__title {
	margin: 0 0 20px;
	font-size: 32px;
	font-weight: 500;
	line-height: 45px;
	color: #000;
}

.hedva-album .hedva-album__content > :first-child {
	margin-top: 0;
}

.hedva-album .hedva-album__content p,
.hedva-album .hedva-album__content ul,
.hedva-album .hedva-album__content ol,
.hedva-album .hedva-album__content blockquote {
	margin: 0 0 14px;
}

.hedva-album .hedva-album__content ul,
.hedva-album .hedva-album__content ol {
	padding-inline-start: 1.25em;
}

.hedva-album .hedva-album__content h2,
.hedva-album .hedva-album__content h3,
.hedva-album .hedva-album__content h4 {
	margin: 40px 0 20px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 2.2px;
	color: #000;
}

.hedva-album .hedva-album__content h2 {
	font-size: 28px;
}

.hedva-album .hedva-album__content h3 {
	font-size: 24px;
}

.hedva-album .hedva-album__content h4 {
	font-size: 20px;
}

.hedva-album .hedva-album__content a {
	color: #000;
	font-weight: inherit;
	text-decoration: underline;
}

.hedva-album .hedva-album__content a:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.hedva-album .hedva-album__content img {
	max-width: 100%;
	height: auto;
}

.hedva-album .hedva-album__content .alignwide,
.hedva-album .hedva-album__content .alignfull,
.hedva-album .hedva-album__gallery .alignwide,
.hedva-album .hedva-album__gallery .alignfull {
	width: auto;
	max-width: 100%;
	margin-right: 0;
	margin-left: 0;
}

.hedva-album .hedva-album__content .alignfull img,
.hedva-album .hedva-album__gallery .alignfull img {
	width: 100%;
}

/* Gutenberg gallery: rendered with columns-1 and without is-cropped (see inc/album-templates.php). */
.hedva-album .hedva-album__gallery .wp-block-gallery {
	--wp--style--unstable-gallery-gap: 15px;
	gap: 15px;
	margin: 0;
}

.hedva-album .hedva-album__gallery .wp-block-gallery figure.wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.hedva-album .hedva-album__gallery a:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

/* "Album gallery" field (inc/album-gallery-field.php). */
.hedva-album .hedva-album__field-gallery {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.hedva-album .hedva-album__field-item {
	margin: 0;
}

.hedva-album .hedva-album__field-image {
	display: block;
	width: 100%;
	height: auto;
}

.hedva-album .hedva-album__field-caption {
	margin: 6px 0 0;
	font-size: 16px;
	line-height: 1.4;
}

/* Classic [gallery] shortcode, rendered without its inline column styles. */
.hedva-album .hedva-album__gallery .gallery {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin: 0;
}

.hedva-album .hedva-album__gallery .gallery > br {
	display: none;
}

.hedva-album .hedva-album__gallery .gallery .gallery-item {
	float: none;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.hedva-album .hedva-album__gallery .gallery .gallery-icon img {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
}

.hedva-album .hedva-album__gallery .gallery .gallery-caption {
	margin: 6px 0 0;
	font-size: 16px;
	line-height: 1.4;
}

@media (max-width: 767px) {
	.hedva-album .hedva-album__layout,
	.hedva-album--rtl .hedva-album__layout,
	.hedva-album--ltr .hedva-album__layout,
	.hedva-album--no-gallery.hedva-album--rtl .hedva-album__layout,
	.hedva-album--no-gallery.hedva-album--ltr .hedva-album__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"text"
			"gallery";
		row-gap: 32px;
		padding: 20px 20px 56px;
	}

	.hedva-album .hedva-album__title {
		font-size: 28px;
		line-height: 1.3;
	}
}

/* ---------- FAQ Accordion (archives & album posts) ---------- */

.hedva-album--has-faq .hedva-album__layout {
	padding-bottom: 48px;
}

.hedva-album .hedva-album__faq {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 10px 80px;
}

.hedva-albums-archive .hedva-faq {
	margin-top: 56px;
	padding: 0 10px;
}

.hedva-albums-archive .hedva-faq__heading,
.hedva-album .hedva-faq__heading {
	margin: 0 0 24px;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.25;
	text-align: start;
	color: #000;
}

.hedva-albums-archive .hedva-faq__list,
.hedva-album .hedva-faq__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hedva-albums-archive .hedva-faq__item,
.hedva-album .hedva-faq__item {
	border: 1px solid #ececec;
	background-color: #fff;
}

.hedva-albums-archive .hedva-faq__question,
.hedva-album .hedva-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background-color: #f5f5f5;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	text-align: start;
	color: #000;
	cursor: pointer;
	list-style: none;
}

.hedva-albums-archive .hedva-faq__question::-webkit-details-marker,
.hedva-album .hedva-faq__question::-webkit-details-marker {
	display: none;
}

.hedva-albums-archive .hedva-faq__question:hover,
.hedva-album .hedva-faq__question:hover {
	background-color: #ebebeb;
}

.hedva-albums-archive .hedva-faq__question:focus-visible,
.hedva-album .hedva-faq__question:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

.hedva-albums-archive .hedva-faq__icon,
.hedva-album .hedva-faq__icon {
	position: relative;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
}

.hedva-albums-archive .hedva-faq__icon::before,
.hedva-albums-archive .hedva-faq__icon::after,
.hedva-album .hedva-faq__icon::before,
.hedva-album .hedva-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #000;
	transform: translateY(-50%);
}

.hedva-albums-archive .hedva-faq__icon::after,
.hedva-album .hedva-faq__icon::after {
	transform: translateY(-50%) rotate(90deg);
}

.hedva-albums-archive .hedva-faq__item[open] .hedva-faq__icon::after,
.hedva-album .hedva-faq__item[open] .hedva-faq__icon::after {
	transform: translateY(-50%) rotate(0deg);
	opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.hedva-albums-archive .hedva-faq__icon::after,
	.hedva-album .hedva-faq__icon::after {
		transition: transform 0.2s ease, opacity 0.2s ease;
	}
}

.hedva-albums-archive .hedva-faq__answer,
.hedva-album .hedva-faq__answer {
	padding: 18px 20px;
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	text-align: start;
	color: #000;
}

.hedva-albums-archive .hedva-faq__answer > :first-child,
.hedva-album .hedva-faq__answer > :first-child {
	margin-top: 0;
}

.hedva-albums-archive .hedva-faq__answer > :last-child,
.hedva-album .hedva-faq__answer > :last-child {
	margin-bottom: 0;
}

.hedva-albums-archive .hedva-faq__answer p,
.hedva-albums-archive .hedva-faq__answer ul,
.hedva-albums-archive .hedva-faq__answer ol,
.hedva-album .hedva-faq__answer p,
.hedva-album .hedva-faq__answer ul,
.hedva-album .hedva-faq__answer ol {
	margin: 0 0 12px;
}

.hedva-albums-archive .hedva-faq__answer ul,
.hedva-albums-archive .hedva-faq__answer ol,
.hedva-album .hedva-faq__answer ul,
.hedva-album .hedva-faq__answer ol {
	padding-inline-start: 1.25em;
}

.hedva-albums-archive .hedva-faq__answer h2,
.hedva-albums-archive .hedva-faq__answer h3,
.hedva-albums-archive .hedva-faq__answer h4,
.hedva-albums-archive .hedva-faq__answer h5,
.hedva-album .hedva-faq__answer h2,
.hedva-album .hedva-faq__answer h3,
.hedva-album .hedva-faq__answer h4,
.hedva-album .hedva-faq__answer h5 {
	margin: 20px 0 10px;
	font-weight: 500;
	line-height: 1.3;
	color: #000;
}

.hedva-albums-archive .hedva-faq__answer h2,
.hedva-album .hedva-faq__answer h2 {
	font-size: 24px;
}

.hedva-albums-archive .hedva-faq__answer h3,
.hedva-album .hedva-faq__answer h3 {
	font-size: 21px;
}

.hedva-albums-archive .hedva-faq__answer h4,
.hedva-album .hedva-faq__answer h4 {
	font-size: 19px;
}

.hedva-albums-archive .hedva-faq__answer h5,
.hedva-album .hedva-faq__answer h5 {
	font-size: 18px;
}

.hedva-albums-archive .hedva-faq__answer a,
.hedva-album .hedva-faq__answer a {
	color: #000;
	text-decoration: underline;
}

.hedva-albums-archive .hedva-faq__answer a:focus-visible,
.hedva-album .hedva-faq__answer a:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* ---------- Contact CTA Button ---------- */

.hedva-albums-archive .hedva-cta {
	margin-top: 48px;
	padding: 0 10px;
	text-align: center;
}

.hedva-album .hedva-cta {
	margin-top: 32px;
	text-align: start;
}

.hedva-albums-archive .hedva-cta__button,
.hedva-album .hedva-cta__button {
	display: inline-block;
	padding: 14px 36px;
	background-color: #000;
	border: 2px solid #000;
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.8px;
	text-decoration: none;
	cursor: pointer;
}

.hedva-albums-archive .hedva-cta__button:hover,
.hedva-album .hedva-cta__button:hover {
	background-color: #2b2b2b;
	border-color: #2b2b2b;
	color: #fff;
	text-decoration: none;
}

.hedva-albums-archive .hedva-cta__button:focus-visible,
.hedva-album .hedva-cta__button:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	.hedva-albums-archive .hedva-cta__button,
	.hedva-album .hedva-cta__button {
		transition: background-color 0.2s ease, border-color 0.2s ease;
	}
}

@media (max-width: 1024px) {
	.hedva-albums-archive .hedva-faq,
	.hedva-albums-archive .hedva-cta {
		padding: 0;
	}
}

@media (max-width: 767px) {
	.hedva-album--has-faq .hedva-album__layout {
		padding-bottom: 36px;
	}

	.hedva-album .hedva-album__faq {
		padding: 0 20px 56px;
	}

	.hedva-albums-archive .hedva-faq {
		margin-top: 40px;
	}

	.hedva-albums-archive .hedva-cta {
		margin-top: 36px;
	}

	.hedva-albums-archive .hedva-cta__button,
	.hedva-album .hedva-cta__button {
		padding: 13px 28px;
		font-size: 17px;
	}

	.hedva-albums-archive .hedva-faq__heading,
	.hedva-album .hedva-faq__heading {
		margin-bottom: 18px;
		font-size: 24px;
	}

	.hedva-albums-archive .hedva-faq__question,
	.hedva-album .hedva-faq__question {
		padding: 14px 16px;
		font-size: 18px;
	}

	.hedva-albums-archive .hedva-faq__answer,
	.hedva-album .hedva-faq__answer {
		padding: 14px 16px;
		font-size: 17px;
		line-height: 26px;
	}
}
