/**
 * Gosy Gallery — galería pública v2 (1.6.0)
 *
 * Mismo lenguaje que el rediseño de la página de evento del tema gosy:
 * tarjetas 14 px, pills 999 px, Poppins, naranja #fe7900, iconos SVG.
 * Ninguna variable --gosy-* está definida en el tema: siempre con fallback.
 * Mobile-first (spec galería v2 §3.1).
 */

.gg,
.gg * {
	box-sizing: border-box;
}

.gg {
	--gg-brand: var(--gosy-brand, #fe7900);
	--gg-brand-hover: var(--gosy-brand-hover, #e66d00);
	--gg-brand-active: var(--gosy-brand-active, #c95f00);
	--gg-brand-soft: var(--gosy-brand-soft, #fff3e6);
	--gg-brand-wash: var(--gosy-brand-wash, #fff8f1);
	--gg-ink: var(--gosy-ink, #1a2538);
	--gg-text: var(--gosy-text, #2f3f5c);
	--gg-muted: var(--gosy-muted, #637799);
	--gg-subtle: var(--gosy-subtle, #8a98ad);
	--gg-surface: var(--gosy-surface, #ffffff);
	--gg-soft: var(--gosy-soft, #f6f8fb);
	--gg-soft-2: var(--gosy-soft-2, #eef3f8);
	--gg-border: var(--gosy-border, #d3def0);
	--gg-border-strong: var(--gosy-border-strong, #b9c7dc);
	--gg-success: #15803d;
	--gg-success-soft: #eaf8ef;
	--gg-shadow: 0 1px 3px rgba(26, 37, 56, 0.06), 0 10px 28px rgba(26, 37, 56, 0.07);
	--gg-radius: 14px;
	--gg-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	font-family: var(--gosy-font-ui, "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif);
	color: var(--gg-text);
	line-height: 1.5;
}

/* El tema pone display en clases; el atributo hidden debe ganar siempre. */
.gg [hidden],
.gg[hidden],
#gg-lightbox [hidden] {
	display: none !important;
}

/* En la vista de álbum y el archivo no tiene sentido el ranking global de la página. */
body.gosy-gallery-album .gg-top-wrap,
body.gosy-gallery-archive .gg-top-wrap {
	display: none;
}

/* ---------- primitivas ---------- */

.gg-card {
	background: var(--gg-surface);
	border: 1px solid var(--gg-border);
	border-radius: var(--gg-radius);
	box-shadow: var(--gg-shadow);
}

.gg-eyebrow {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--gg-brand);
}

.gg-eyebrow a {
	color: var(--gg-muted);
	letter-spacing: 0;
	text-transform: none;
	font-weight: 500;
	text-decoration: none;
}

.gg-eyebrow a:hover {
	color: var(--gg-brand);
}

.gg-h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--gg-ink);
	line-height: 1.25;
}

.gg-h2::before {
	content: "";
	flex: none;
	width: 3px;
	height: 20px;
	border-radius: 2px;
	background: var(--gg-brand);
}

.gg-h2 small {
	font-weight: 500;
	font-size: 0.78rem;
	color: var(--gg-muted);
}

.gg-h2 .gg-ico {
	fill: var(--gg-brand);
}

.gg-ico {
	display: inline-block;
	vertical-align: -2px;
	fill: currentColor;
	flex: none;
}

.gg-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	font-size: 0.78rem;
	color: var(--gg-muted);
}

.gg-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.gg-meta .gg-ico {
	fill: var(--gg-muted);
}

.gg-muted {
	color: var(--gg-subtle);
}

.gg-notice {
	margin: 0;
	padding: 14px 16px;
	border: 1px dashed var(--gg-border);
	border-radius: 10px;
	color: var(--gg-muted);
	font-size: 0.86rem;
	background: var(--gg-soft);
}

.gg-hint {
	margin: 4px 0 0;
	font-size: 0.72rem;
	color: var(--gg-subtle);
	line-height: 1.4;
}

.gg-hint a {
	color: var(--gg-brand-active);
	font-weight: 600;
	text-decoration: none;
}

/* botones */
.gg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 40px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none !important;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.gg-btn:focus-visible {
	outline: 2px solid var(--gg-brand);
	outline-offset: 2px;
}

.gg-btn:active {
	transform: translateY(1px);
}

.gg-btn--primary {
	background: var(--gg-brand);
	color: #fff !important;
}

.gg-btn--primary:hover {
	background: var(--gg-brand-hover);
	color: #fff;
}

.gg-btn--secondary {
	background: var(--gg-surface);
	border-color: var(--gg-brand);
	color: var(--gg-brand-active) !important;
}

.gg-btn--secondary:hover {
	background: var(--gg-brand-wash);
}

.gg-btn--ghost {
	background: var(--gg-surface);
	border-color: var(--gg-border-strong);
	color: var(--gg-text) !important;
}

.gg-btn--ghost:hover {
	border-color: var(--gg-brand);
	background: var(--gg-brand-wash);
}

.gg-btn .gg-ico {
	fill: currentColor;
}

/* pills */
.gg-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1;
	border-radius: 999px;
	padding: 5px 10px;
	white-space: nowrap;
}

.gg-pill i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
}

.gg-pill--glass {
	background: rgba(26, 37, 56, 0.55);
	color: #fff;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.gg-pill--glass .gg-ico {
	fill: #fff;
}

.gg-pill--scoring i {
	background: #4ade80;
}

.gg-pill--fresh i {
	background: var(--gg-brand);
}

.gg-pill--closed i {
	background: var(--gg-subtle);
}

/* chips */
.gg-chips {
	display: flex;
	gap: 8px;
	flex-wrap: nowrap;
	overflow-x: auto;
	padding-bottom: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}

.gg-chips::-webkit-scrollbar {
	display: none;
}

.gg-chips__sep {
	flex: none;
	width: 1px;
	align-self: stretch;
	background: var(--gg-border);
	margin: 4px 2px;
}

.gg-chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 6px 13px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: var(--gg-soft-2);
	color: var(--gg-text);
	font-family: inherit;
	font-size: 0.76rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
	scroll-snap-align: start;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.gg-chip small {
	font-weight: 500;
	font-size: 0.7rem;
	color: var(--gg-muted);
}

.gg-chip .gg-ico {
	fill: currentColor;
}

.gg-chip:hover {
	background: var(--gg-brand-wash);
	color: var(--gg-brand-active);
}

.gg-chip.is-on {
	background: var(--gg-brand-soft);
	color: var(--gg-brand-active);
	border-color: #ffd9ad;
}

.gg-chip.is-on small {
	color: var(--gg-brand-active);
}

.gg-chip--outline {
	background: transparent;
	border-color: var(--gg-border);
}

.gg-chip:focus-visible {
	outline: 2px solid var(--gg-brand);
	outline-offset: 2px;
}

/* avatares */
.gg-av,
.gg-avstack img,
.gg-tile__author img,
.gg-lb__author img,
.gg-top__avatar img {
	width: var(--gosy-av-size, 24px);
	height: var(--gosy-av-size, 24px);
	border-radius: 50%;
	object-fit: cover;
	display: inline-block;
	vertical-align: middle;
}

.gg-av--initials {
	display: inline-grid;
	place-items: center;
	background: var(--gg-brand-soft);
	color: var(--gg-brand-active);
	font-size: calc(var(--gosy-av-size, 24px) * 0.36);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

.gg-avstack {
	display: inline-flex;
	align-items: center;
}

.gg-avstack .gg-av,
.gg-avstack img {
	border: 2px solid var(--gg-surface);
	box-shadow: 0 0 0 1px var(--gg-border);
	--gosy-av-size: 24px;
	width: 24px;
	height: 24px;
}

.gg-avstack > :not(:first-child):not(em) {
	margin-left: -8px;
}

.gg-avstack em {
	font-style: normal;
	font-size: 0.74rem;
	color: var(--gg-muted);
	margin-left: 8px;
	white-space: nowrap;
}

/* botón de icono con tooltip (aviso discreto de subida) */
.gg-btn--icon {
	flex: 0 0 40px !important;
	width: 40px;
	min-width: 40px;
	padding: 0;
	position: relative;
}

.gg-tip {
	position: relative;
}

.gg-tip::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%) translateY(4px);
	width: max-content;
	max-width: 230px;
	padding: 8px 11px;
	border-radius: 8px;
	background: var(--gg-ink);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	white-space: normal;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s, transform 0.15s;
	z-index: 5;
}

.gg-tip::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(100% + 3px);
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: var(--gg-ink);
	opacity: 0;
	transition: opacity 0.15s;
	pointer-events: none;
}

/* Tooltip solo con ratón. En táctil el toque abre el popover (.gg-pop). */
@media (hover: hover) {
	.gg-tip:hover::after,
	.gg-tip:focus-visible::after,
	.gg-tip:hover::before,
	.gg-tip:focus-visible::before {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}

	.gg-tipwrap.is-open .gg-tip::after,
	.gg-tipwrap.is-open .gg-tip::before {
		opacity: 0 !important;
	}
}

.gg-tipwrap {
	position: relative;
	display: inline-flex;
}

.gg-pop {
	position: absolute;
	right: 0;
	bottom: calc(100% + 10px);
	width: 240px;
	max-width: calc(100vw - 48px);
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--gg-surface);
	border: 1px solid var(--gg-border);
	box-shadow: 0 1px 3px rgba(26, 37, 56, 0.08), 0 14px 32px rgba(26, 37, 56, 0.16);
	color: var(--gg-text);
	font-size: 0.78rem;
	line-height: 1.4;
	text-align: left;
	z-index: 6;
}

.gg-pop::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 100%;
	border: 7px solid transparent;
	border-top-color: var(--gg-surface);
}

.gg-pop p {
	margin: 0;
}

.gg-pop__link {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--gg-brand-active) !important;
	text-decoration: none !important;
	padding: 4px 0;
}

.gg-pop__link:hover,
.gg-pop__link:focus-visible {
	text-decoration: underline !important;
}

.gg-album__actions .gg-tip::after {
	left: auto;
	right: 0;
	transform: translateX(0) translateY(4px);
}

@media (hover: hover) {
	.gg-album__actions .gg-tip:hover::after,
	.gg-album__actions .gg-tip:focus-visible::after {
		transform: translateX(0) translateY(0);
	}
}

.gg-album__actions .gg-tip::before {
	left: auto;
	right: 14px;
	transform: none;
}

/* ---------- listado ---------- */

.gg-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.gg-archive-head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gg-back {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--gg-muted);
	text-decoration: none;
}

.gg-back:hover {
	color: var(--gg-brand);
}

.gg-archive-title {
	margin: 2px 0 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--gg-ink);
	line-height: 1.2;
}

.gg-archive-desc {
	margin: 0;
	font-size: 0.84rem;
	color: var(--gg-muted);
}

.gg-archive-desc--text {
	color: var(--gg-text);
	max-width: 62ch;
	margin-bottom: 2px;
}

.gg-toolbar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 100%;
}

.gg-order {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	max-width: 100%;
}

.gg-order__label {
	font-size: 0.76rem;
	color: var(--gg-muted);
	font-weight: 500;
}

.gg-order__select {
	flex: 1;
	min-height: 38px;
	padding: 6px 34px 6px 14px;
	border: 1px solid var(--gg-border);
	border-radius: 999px;
	background: var(--gg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23637799'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
	color: var(--gg-ink);
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	-webkit-appearance: none;
	appearance: none;
}

.gg-albums {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.gg-albums .gosy-album-drawer {
	grid-column: 1 / -1;
}

.gg-album {
	display: flex;
	flex-direction: column;
	background: var(--gg-surface);
	border: 1px solid var(--gg-border);
	border-radius: var(--gg-radius);
	box-shadow: var(--gg-shadow);
	overflow: hidden;
	transition: transform 0.18s var(--gg-ease), box-shadow 0.18s var(--gg-ease);
}

@media (hover: hover) {
	.gg-album:hover {
		transform: translateY(-2px);
		box-shadow: 0 1px 3px rgba(26, 37, 56, 0.08), 0 16px 36px rgba(26, 37, 56, 0.12);
	}
}

.gg-album__cover {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--gg-soft-2);
	overflow: hidden;
	text-decoration: none;
}

.gg-album__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s var(--gg-ease);
}

@media (hover: hover) {
	.gg-album:hover .gg-album__cover img {
		transform: scale(1.03);
	}
}

.gg-album__cover:focus-visible {
	outline: 2px solid var(--gg-brand);
	outline-offset: -2px;
}

.gg-album__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--gg-subtle);
}

.gg-album__status {
	position: absolute;
	left: 10px;
	top: 10px;
}

.gg-album__badges {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	display: flex;
	justify-content: space-between;
	gap: 6px;
	pointer-events: none;
}

.gg-album__badges:empty {
	display: none;
}

.gg-album__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
	flex: 1 1 auto;
}

.gg-album__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--gg-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gg-album__title a {
	color: inherit;
	text-decoration: none;
}

.gg-album__title a:hover {
	color: var(--gg-brand-active);
}

.gg-album__actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}

.gg-album__actions .gg-btn {
	flex: 1 1 0;
	min-width: 0;
	padding-left: 10px;
	padding-right: 10px;
	font-size: 0.78rem;
}

.gg-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 12px 0 30px;
	font-size: 0.78rem;
	color: var(--gg-muted);
}

/* ---------- colecciones ---------- */

.gg-colls-wrap {
	display: flex;
	flex-direction: column;
}

.gg-colls {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.gg-coll {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-decoration: none !important;
	color: var(--gg-text);
	transition: transform 0.18s var(--gg-ease), box-shadow 0.18s var(--gg-ease), border-color 0.15s;
}

@media (hover: hover) {
	.gg-coll:hover {
		border-color: var(--gg-brand);
		transform: translateY(-2px);
		box-shadow: 0 1px 3px rgba(26, 37, 56, 0.08), 0 16px 36px rgba(26, 37, 56, 0.12);
	}

	.gg-coll:hover .gg-coll__cover img {
		transform: scale(1.04);
	}
}

.gg-coll__cover {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--gg-soft-2);
	overflow: hidden;
}

.gg-coll__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s var(--gg-ease);
}

.gg-coll__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding: 10px 12px 12px;
}

.gg-coll__title {
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--gg-ink);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gg-coll__count {
	font-size: 0.74rem;
	color: var(--gg-muted);
}

.gg-album-head__desc {
	margin: 0;
	font-size: 0.82rem;
	color: var(--gg-muted);
	max-width: 60ch;
}

/* ---------- vista de álbum ---------- */

.gg-album-view {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.gg-album-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px 16px;
}

.gg-album-head__main {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.gg-album-head__title {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--gg-ink);
	text-wrap: balance;
}

.gg-album-head__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gg-album-head__actions .gg-btn {
	flex: 1 1 auto;
}

.gg-chips--views {
	margin-top: 4px;
}

.gg-section {
	display: flex;
	flex-direction: column;
}

.gg-tiles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px;
}

.gg-tiles--lg {
	grid-template-columns: 1fr;
	gap: 10px;
}

.gg-tiles--compact {
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
}

.gg-tile {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 10px;
	background: var(--gg-soft-2);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	cursor: pointer;
	font: inherit;
}

.gg-tiles--lg .gg-tile {
	aspect-ratio: 3 / 2;
	border-radius: 12px;
}

.gg-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s var(--gg-ease);
}

@media (hover: hover) {
	.gg-tile:hover img {
		transform: scale(1.04);
	}
}

.gg-tile:focus-visible {
	outline: 2px solid var(--gg-brand);
	outline-offset: 2px;
}

.gg-tile__badges {
	position: absolute;
	left: 6px;
	top: 6px;
	display: flex;
	gap: 4px;
	pointer-events: none;
}

.gg-tile__badges .gg-pill {
	padding: 4px 6px;
}

.gg-tile__badges:empty {
	display: none;
}

.gg-tile__author {
	position: absolute;
	right: 6px;
	bottom: 6px;
	pointer-events: none;
	--gosy-av-size: 22px;
}

.gg-tile__author img,
.gg-tile__author .gg-av {
	width: 22px;
	height: 22px;
	border: 2px solid rgba(255, 255, 255, 0.9);
}

@media (hover: hover) {
	.gg-tile__author {
		opacity: 0;
		transition: opacity 0.15s;
	}

	.gg-tile:hover .gg-tile__author,
	.gg-tile:focus-visible .gg-tile__author {
		opacity: 1;
	}
}

.gg-tile__likes {
	position: absolute;
	left: 6px;
	bottom: 6px;
	padding: 4px 7px;
	pointer-events: none;
	font-variant-numeric: tabular-nums;
}

.gg-tile__likes .gg-ico {
	fill: #fff;
}

.gg-tile__likes b {
	font-weight: 600;
}

.gg-tile__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
}

.gg-tile__play .gg-ico {
	width: 40px;
	height: 40px;
	padding: 11px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	fill: var(--gg-ink);
}

.gg-more {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}

.gg-tile.is-hidden {
	display: none;
}

/* ---------- bloque de la página de evento ---------- */

.gg-event-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gg-event-block .gg-more {
	margin-top: 4px;
	margin-bottom: 18px;
}

.gg-notice--inline {
	background: transparent;
	border: 0;
	padding: 0;
}

/* ---------- ranking ---------- */

.gg-top-wrap {
	margin-top: 8px;
}

.gg-top {
	list-style: none;
	margin: 0;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gg-top__item {
	display: grid;
	grid-template-columns: 26px 32px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 8px 10px;
	border-radius: 10px;
}

.gg-top__item--1 {
	background: var(--gg-brand-wash);
}

.gg-top__pos {
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--gg-muted);
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.gg-top__item--1 .gg-top__pos {
	color: var(--gg-brand);
}

.gg-top__item--2 .gg-top__pos {
	color: var(--gg-subtle);
}

.gg-top__item--3 .gg-top__pos {
	color: #b45309;
}

.gg-top__avatar {
	--gosy-av-size: 32px;
	line-height: 0;
}

.gg-top__avatar img,
.gg-top__avatar .gg-av {
	width: 32px;
	height: 32px;
}

.gg-top__name {
	font-weight: 600;
	font-size: 0.86rem;
	color: var(--gg-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gg-top__bar {
	display: none;
	height: 5px;
	border-radius: 999px;
	background: var(--gg-soft-2);
	overflow: hidden;
}

.gg-top__bar i {
	display: block;
	height: 100%;
	background: var(--gg-brand);
	border-radius: 999px;
}

.gg-top__count {
	font-size: 0.76rem;
	color: var(--gg-muted);
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* ---------- drawer de subida (envoltorio) ---------- */

.gg-drawer {
	margin-top: -2px;
}

.gg-drawer .gosy-album-drawer-inner {
	border-radius: var(--gg-radius);
}

/* ---------- lightbox 2.0 ---------- */

#gg-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	flex-direction: column;
	background: #0b1220;
	color: #fff;
	font-family: var(--gosy-font-ui, "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif);
	height: 100vh;
	height: 100dvh;
	padding-bottom: env(safe-area-inset-bottom, 0);
}

#gg-lightbox.is-open {
	display: flex;
}

.gg-lb__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	flex: none;
}

.gg-lb__ctx {
	display: flex;
	align-items: baseline;
	gap: 10px;
	min-width: 0;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #ffb066;
}

.gg-lb__ctx .gg-ico {
	fill: #ffb066;
	vertical-align: -1px;
}

.gg-lb__ctx span {
	display: none;
	color: #c9d3e3;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 500;
	font-size: 0.76rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gg-lb__icons {
	display: flex;
	gap: 6px;
	flex: none;
}

.gg-lb__ib {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 40px;
	min-width: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font: inherit;
	font-size: 0.74rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s;
}

.gg-lb__ib:hover {
	background: rgba(255, 255, 255, 0.2);
}

.gg-lb__ib:focus-visible {
	outline: 2px solid #ffb066;
	outline-offset: 2px;
}

.gg-lb__ib--like svg {
	transition: transform 0.2s var(--gg-ease);
}

.gg-lb__ib--like.is-on {
	background: var(--gosy-brand, #fe7900);
}

.gg-lb__ib--like.is-pop svg {
	transform: scale(1.3);
}

.gg-lb__ib--like.is-off {
	opacity: 0.55;
}

.gg-lb__ib--round {
	padding: 0;
	width: 40px;
}

.gg-lb__ib svg {
	fill: #fff;
}

.gg-lb__stage {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 8px;
	touch-action: pan-y;
}

.gg-lb__media {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden; /* la foto ampliada no se sale del escenario */
}

/* Zoom (1.8.1) */
.gg-lb__img {
	transform-origin: center center;
	touch-action: none; /* el pellizco lo gestiona el visor, no el navegador */
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
}

.gg-lb__img.is-anim {
	transition: opacity 0.25s ease, transform 0.25s var(--gg-ease, ease);
}

#gg-lightbox.is-zoomed .gg-lb__img {
	cursor: grab;
	border-radius: 0;
}

#gg-lightbox.is-zoomed .gg-lb__img.is-drag {
	cursor: grabbing;
}

#gg-lightbox.is-zoomed .gg-lb__nav {
	opacity: 0.45;
}

#gg-lightbox.is-zoomed .gg-lb__nav:hover {
	opacity: 1;
}

.gg-lb__zoom {
	display: none; /* en móvil: doble toque y pellizco */
}

.gg-lb__zoom[aria-pressed="true"] {
	background: rgba(255, 255, 255, 0.28);
}

a.gg-lb__dl {
	text-decoration: none;
}

a.gg-lb__dl:hover,
a.gg-lb__dl:focus {
	color: #fff;
	text-decoration: none;
}

.gg-lb__img,
.gg-lb__video {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	border-radius: 6px;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.gg-lb__img.is-loaded,
.gg-lb__video.is-loaded {
	opacity: 1;
}

.gg-lb__video {
	width: 100%;
	background: #000;
}

.gg-lb__hidden {
	display: none !important;
}

.gg-lb__skel {
	position: absolute;
	inset: 12px;
	border-radius: 8px;
	background: linear-gradient(90deg, #1c2536 25%, #26314a 50%, #1c2536 75%);
	background-size: 200% 100%;
	animation: gg-shimmer 1.4s infinite;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s;
}

.gg-lb__skel.is-on {
	opacity: 1;
}

@keyframes gg-shimmer {
	to {
		background-position: -200% 0;
	}
}

.gg-lb__nav {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	place-items: center;
	z-index: 2;
	transition: background-color 0.15s;
}

.gg-lb__nav:hover {
	background: rgba(255, 255, 255, 0.24);
}

.gg-lb__nav--prev {
	left: 12px;
}

.gg-lb__nav--next {
	right: 12px;
}

.gg-lb__nav svg {
	stroke: #fff;
}

.gg-lb__foot {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 12px 4px;
	font-size: 0.76rem;
	color: #c9d3e3;
	white-space: nowrap;
	overflow: hidden;
}

.gg-lb__author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gg-lb__author .gg-av,
.gg-lb__author img {
	--gosy-av-size: 24px;
	width: 24px;
	height: 24px;
	border: 2px solid #0b1220;
}

.gg-lb__event {
	color: #ffb066 !important;
	text-decoration: none !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 40vw;
}

.gg-lb__event:hover {
	text-decoration: underline !important;
}

.gg-lb__class {
	font-size: 0.66rem;
	background: rgba(255, 255, 255, 0.12);
	color: #c9d3e3;
	border-radius: 999px;
	padding: 3px 8px;
}

.gg-lb__strip {
	flex: none;
	display: flex;
	gap: 6px;
	align-items: center;
	padding: 8px 12px 12px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.gg-lb__strip::-webkit-scrollbar {
	display: none;
}

.gg-lb__th {
	flex: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: #1c2536;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.7;
	scroll-snap-align: center;
	transition: opacity 0.15s, transform 0.15s;
	position: relative;
}

.gg-lb__th img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gg-lb__th.is-on {
	opacity: 1;
	outline: 2px solid var(--gosy-brand, #fe7900);
	outline-offset: 2px;
	transform: scale(1.08);
}

.gg-lb__th:focus-visible {
	outline: 2px solid #ffb066;
	outline-offset: 2px;
}

.gg-lb__th--video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 16px no-repeat, rgba(0, 0, 0, 0.25);
}

.gg-lb__sep {
	flex: none;
	display: flex;
	align-items: center;
	height: 48px;
	padding: 0 6px;
	font-size: 0.6rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8a98ad;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.gg-lb__toast {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.92);
	color: #1a2538;
	font-size: 0.76rem;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}

.gg-lb__toast.is-on {
	opacity: 1;
}

/* modal de reporte (reutiliza los estilos antiguos #gosy-report-modal) */

/* ---------- tablet ---------- */

@media (min-width: 641px) {
	.gg-albums {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.gg-album__cover {
		aspect-ratio: 3 / 2;
	}

	.gg-toolbar {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}

	.gg-toolbar > .gg-chips {
		flex: 1 1 320px;
		min-width: 0;
		flex-wrap: wrap;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.gg-order {
		flex: 0 0 auto;
		margin-left: auto;
	}

	.gg-order__select {
		flex: none;
		max-width: 240px;
	}

	.gg-tiles {
		grid-template-columns: repeat(4, 1fr);
		gap: 8px;
	}

	.gg-tiles--lg {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.gg-tiles--compact {
		grid-template-columns: repeat(4, 1fr);
	}

	.gg-colls {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.gg-album-head {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		padding: 18px 20px;
	}

	.gg-album-head__actions {
		flex: none;
		justify-content: flex-end;
	}

	.gg-album-head__actions .gg-btn {
		flex: none;
	}

	.gg-album-head__title {
		font-size: 1.4rem;
	}

	.gg-top__item {
		grid-template-columns: 28px 32px minmax(0, 1fr) 180px 100px;
	}

	.gg-top__bar {
		display: block;
	}

	.gg-lb__nav {
		display: grid;
	}

	.gg-lb__th {
		width: 64px;
		height: 64px;
	}

	.gg-lb__sep {
		height: 64px;
	}

	.gg-lb__ctx span {
		display: inline;
	}

	.gg-lb__stage {
		padding: 0 68px;
	}

	.gg-lb__zoom {
		display: inline-flex;
	}
}

/* ---------- escritorio ---------- */

@media (min-width: 1025px) {
	/* 3 columnas en escritorio normal; el atributo columns del shortcode (4) solo a partir de 1400 px. */
	.gg-albums {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
	}

	.gg-tiles {
		grid-template-columns: repeat(5, 1fr);
		gap: 10px;
	}

	.gg-tiles--lg {
		grid-template-columns: repeat(3, 1fr);
	}

	.gg-tiles--compact {
		grid-template-columns: repeat(4, 1fr);
	}

	.gg-album-head__title {
		font-size: 1.5rem;
	}

	.gg-colls {
		grid-template-columns: repeat(4, 1fr);
		gap: 18px;
	}
}

@media (min-width: 1400px) {
	.gg-albums {
		grid-template-columns: repeat(var(--gg-cols, 4), minmax(0, 1fr));
		gap: 20px;
	}
}


/* ---------- concursos (1.8.0) ---------- */

.gg-contest,
.gg-contest-hub,
.gg-contest-rules {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.gg-contest-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px 16px;
}

.gg-contest-head__main {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.gg-contest-head__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--gg-ink);
	text-wrap: balance;
}

.gg-contest-head__desc {
	font-size: 0.86rem;
	color: var(--gg-muted);
	max-width: 62ch;
}

.gg-contest-head__desc p {
	margin: 0 0 6px;
}

.gg-timeline {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px;
}

.gg-tl {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 8px 10px;
	border-radius: 10px;
	background: var(--gg-soft);
	border: 1px solid #e4ebf5;
	font-size: 0.72rem;
	color: var(--gg-muted);
}

.gg-tl b {
	color: var(--gg-ink);
	font-size: 0.78rem;
}

.gg-tl.is-on {
	background: var(--gg-brand-soft);
	border-color: #ffd9ad;
}

.gg-tl.is-on b {
	color: var(--gg-brand-active);
}

.gg-tl.is-done {
	opacity: 0.6;
}

.gg-contest-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 6px;
}

.gg-contest-actions .gg-btn {
	flex: 1 1 auto;
}

.gg-contest-problem {
	font-size: 0.8rem;
	color: var(--gg-brand-active);
	font-weight: 500;
}

.gg-prize {
	background: #fff7e6;
	border: 1px solid #ffe3b3;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 0.82rem;
	color: var(--gg-text);
}

.gg-prize__text p {
	margin: 4px 0 0;
	font-weight: 600;
	color: var(--gg-ink);
	font-size: 0.95rem;
	line-height: 1.3;
}

.gg-prize__points {
	margin-top: 8px;
	font-size: 0.74rem;
	color: var(--gg-muted);
}

.gg-contest-mine {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gg-contest-mine__row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
}

.gg-contest-mine__row img {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
}

.gg-contest-mine__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.84rem;
	min-width: 0;
}

.gg-contest-mine__info strong {
	color: var(--gg-ink);
}

.gg-pill--pending {
	background: #fff7e6;
	color: #b45309;
	border: 1px solid #ffe3b3;
	align-self: flex-start;
}

.gg-pill--ok {
	background: #eaf8ef;
	color: #15803d;
	border: 1px solid #d3ecd9;
	align-self: flex-start;
}

.gg-pill--bad {
	background: #fff0f0;
	color: #b91c1c;
	border: 1px solid #ffd6d6;
	align-self: flex-start;
}

.gg-contest-votebar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 14px 16px;
}

.gg-contest-votebar strong {
	color: var(--gg-ink);
	font-size: 0.9rem;
}

.gg-entries {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.gg-entry {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.gg-entry--mine {
	outline: 2px solid #ffd9ad;
}

.gg-entry__photo {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--gg-soft-2);
	cursor: pointer;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.gg-entry__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gg-entry__mine {
	position: absolute;
	left: 8px;
	top: 8px;
}

.gg-entry__body {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gg-entry__title {
	font-weight: 600;
	color: var(--gg-ink);
	font-size: 0.86rem;
	line-height: 1.25;
}

.gg-entry__event {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.gg-entry__vote {
	margin-top: 4px;
}

.gg-hb {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 600;
	font-size: 0.78rem;
	border: 1.5px solid var(--gg-border);
	background: var(--gg-surface);
	color: var(--gg-text);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.gg-hb .gg-ico {
	fill: currentColor;
}

.gg-hb:hover {
	border-color: var(--gg-brand);
	color: var(--gg-brand-active);
}

.gg-hb.is-on {
	background: var(--gg-brand);
	border-color: var(--gg-brand);
	color: #fff;
}

.gg-hb--off {
	color: var(--gg-subtle);
	border-style: dashed;
	cursor: default;
}

.gg-vote-count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	color: var(--gg-ink);
}

.gg-vote-count .gg-ico {
	fill: var(--gg-brand);
}

.gg-vote-count b {
	font-weight: 700;
}

.gg-winner {
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
}

.gg-winner__photo {
	display: block;
	padding: 0;
	border: 0;
	background: var(--gg-soft-2);
	cursor: pointer;
	min-height: 220px;
}

.gg-winner__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gg-winner__info {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gg-winner__info h3 {
	margin: 0;
	font-size: 1.15rem;
	color: var(--gg-ink);
	line-height: 1.25;
}

.gg-votes {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--gg-ink);
	font-size: 1rem;
}

.gg-votes .gg-ico {
	fill: var(--gg-brand);
}

.gg-podium {
	display: grid;
	grid-template-columns: 1fr 1.25fr 1fr;
	gap: 8px;
	align-items: end;
}

.gg-podium__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.gg-podium__pos {
	font-weight: 700;
	font-size: 0.76rem;
	color: var(--gg-muted);
}

.gg-podium__item.is-first .gg-podium__pos {
	color: var(--gg-brand);
}

.gg-podium__item.is-first .gg-tile {
	outline: 2px solid var(--gg-brand);
	outline-offset: 2px;
}

.gg-podium__name {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--gg-text);
	text-align: center;
}

/* drawer de participación */
.gg-drawer-contest {
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gg-dropzone-lite {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 26px 16px;
	border: 2px dashed var(--gg-border-strong);
	border-radius: 12px;
	background: var(--gg-soft);
	color: var(--gg-muted);
	font-size: 0.76rem;
	text-align: center;
	cursor: pointer;
}

.gg-dropzone-lite:hover {
	border-color: var(--gg-brand);
	background: var(--gg-brand-wash);
}

.gg-dropzone-lite strong {
	color: var(--gg-ink);
	font-size: 0.95rem;
}

.gg-dropzone-lite .gg-ico {
	fill: var(--gg-brand);
}

.gg-cd-status {
	margin: 0;
	font-size: 0.8rem;
	color: var(--gg-muted);
}

.gg-cd-status.is-error {
	color: #b91c1c;
	font-weight: 500;
}

.gg-cd-preview {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.gg-cd-preview img {
	width: 100%;
	max-height: 260px;
	object-fit: cover;
	border-radius: 10px;
	background: var(--gg-soft-2);
}

.gg-cd-preview__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.8rem;
	color: var(--gg-muted);
	align-items: flex-start;
}

.gg-cd-preview__meta strong {
	color: var(--gg-ink);
}

.gg-cd-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.gg-cd-fields label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--gg-ink);
}

.gg-cd-fields small {
	font-weight: 400;
	color: var(--gg-subtle);
}

.gg-cd-fields input,
.gg-cd-fields select {
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid var(--gg-border);
	border-radius: 8px;
	font: inherit;
	font-size: 0.86rem;
	color: var(--gg-text);
	background: var(--gg-surface);
}

.gg-cd-decl {
	display: grid;
	gap: 8px;
	font-size: 0.8rem;
	color: var(--gg-text);
}

.gg-cd-decl label {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 8px;
	align-items: start;
	line-height: 1.4;
	padding: 6px 0;
}

.gg-cd-decl input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--gg-brand);
}

.gg-cd-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}

.gg-cd-close {
	align-self: flex-start;
}

.gg-contest-flash {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%) translateY(8px);
	background: var(--gg-ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 99999;
}

.gg-contest-flash.is-on {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* hub, historial y widget */
.gg-contest-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.gg-contest-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	text-decoration: none !important;
	color: var(--gg-text);
}

.gg-contest-card:hover {
	border-color: var(--gg-brand);
}

.gg-contest-card__title {
	color: var(--gg-ink);
	font-size: 1.05rem;
	line-height: 1.25;
}

.gg-contest-card__meta {
	font-size: 0.78rem;
	color: var(--gg-muted);
}

.gg-history {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.gg-history__item {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-decoration: none !important;
	color: var(--gg-text);
}

.gg-history__photo {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--gg-soft-2);
}

.gg-history__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gg-history__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px 12px;
	font-size: 0.8rem;
}

.gg-history__body strong {
	color: var(--gg-ink);
}

.gg-history__body small {
	color: var(--gg-muted);
}

.gg-contest-widget {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	align-items: center;
	padding: 14px 16px;
	text-decoration: none !important;
	color: var(--gg-text);
	margin-bottom: 4px;
}

.gg-contest-widget:hover {
	border-color: var(--gg-brand);
}

.gg-contest-widget__photo {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--gg-soft-2);
}

.gg-contest-widget__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gg-contest-widget__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.gg-contest-widget__body strong {
	color: var(--gg-ink);
	font-size: 1rem;
	line-height: 1.25;
}

.gg-contest-widget__meta {
	font-size: 0.78rem;
	color: var(--gg-muted);
}

.gg-rules-sheet {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px 18px;
	font-size: 0.8rem;
	margin-top: 4px;
}

.gg-rules-sheet div {
	display: flex;
	flex-direction: column;
	padding: 6px 0;
	border-bottom: 1px solid var(--gg-soft-2);
}

.gg-rules-sheet b {
	color: var(--gg-ink);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.gg-rules-body {
	padding: 18px 20px;
	font-size: 0.9rem;
	line-height: 1.6;
}

.gg-rules-body h2,
.gg-rules-body h3,
.gg-rules-body h4 {
	color: var(--gg-ink);
	margin: 18px 0 6px;
}

@media (min-width: 641px) {
	.gg-contest-head {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		padding: 20px 22px;
	}

	.gg-prize {
		flex: 0 0 280px;
	}

	.gg-timeline {
		grid-template-columns: repeat(4, 1fr);
	}

	.gg-contest-actions .gg-btn {
		flex: none;
	}

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

	.gg-winner {
		grid-template-columns: 1.3fr 1fr;
	}

	.gg-cd-preview {
		grid-template-columns: 180px 1fr;
	}

	.gg-cd-fields {
		grid-template-columns: 1fr 1fr;
	}

	.gg-cd-actions {
		flex-direction: row;
		align-items: center;
	}

	.gg-contest-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.gg-history {
		grid-template-columns: repeat(3, 1fr);
	}

	.gg-contest-widget {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.gg-contest-widget.has-winner {
		grid-template-columns: 160px minmax(0, 1fr) auto;
	}

	.gg-rules-sheet {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1025px) {
	.gg-entries {
		grid-template-columns: repeat(3, 1fr);
	}

	.gg-history {
		grid-template-columns: repeat(4, 1fr);
	}

	.gg-contest-head__title {
		font-size: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gg *,
	#gg-lightbox * {
		transition: none !important;
		animation: none !important;
	}
}
