/* ==========================================================================
   F2F Flickr — Widget Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Wrapper
   -------------------------------------------------------------------------- */

.f2f-flickr-wrapper {
	width: 100%;
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */

.f2f-flickr-grid {
	display: grid;
	/* grid-template-columns driven by Elementor responsive control */
	/* grid-auto-rows driven by Elementor row_height control — default below */
	grid-auto-rows: 240px;
	gap: 16px;
}

/* --------------------------------------------------------------------------
   Card — fills its grid cell completely; image is the background
   -------------------------------------------------------------------------- */

.f2f-flickr-card {
	position: relative;
	overflow: hidden;
	/* height is determined by grid-auto-rows — do not override with height:100% */
	min-height: 0;
	/* Safari fix: overflow:hidden + border-radius + transforms */
	-webkit-mask-image: -webkit-radial-gradient(white, black);
	transform: translateZ(0);
}

.f2f-flickr-card-link {
	display: block;
	position: absolute;
	inset: 0;
	text-decoration: none;
	color: inherit;
}

/* --------------------------------------------------------------------------
   Thumbnail — covers the entire card
   -------------------------------------------------------------------------- */

.f2f-flickr-thumb-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.f2f-flickr-thumb-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.f2f-flickr-card-link:hover .f2f-flickr-thumb-wrap img {
	transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Info overlay — text at bottom over a gradient
   -------------------------------------------------------------------------- */

.f2f-flickr-card-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 32px 14px 14px;
	/* default gradient — overridden by Elementor overlay color control */
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
	color: #fff;
}

.f2f-flickr-title {
	margin: 0 0 4px;
	font-size: 1em;
	line-height: 1.35;
	font-weight: 600;
}

.f2f-flickr-count {
	display: block;
	font-size: 0.82em;
	opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Load More button
   -------------------------------------------------------------------------- */

.f2f-flickr-footer {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.f2f-flickr-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 32px;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	font-size: 0.95em;
	font-weight: 500;
	letter-spacing: 0.03em;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.f2f-flickr-load-more:hover {
	opacity: 0.8;
}

.f2f-flickr-load-more.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Error / placeholder
   -------------------------------------------------------------------------- */

.f2f-flickr-error,
.f2f-flickr-placeholder {
	padding: 24px;
	border: 1px dashed #ccc;
	border-radius: 4px;
	color: #888;
	text-align: center;
	font-size: 0.9em;
}
