/* ==========================================================================
   Gosy Gallery — Estilos públicos
   Formulario de subida, galería, ranking y mensajes de estado.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Formulario de subida — drop zone
   -------------------------------------------------------------------------- */

.gosy-upload-wrap {
	max-width: 700px;
	margin: 0 auto;
	font-family: inherit;
}

.gosy-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 40px 24px;
	border: 2px dashed #c3c4c7;
	border-radius: 8px;
	background: #fafafa;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	text-align: center;
	outline-offset: 3px;
}

.gosy-dropzone:hover,
.gosy-dropzone:focus {
	border-color: #2271b1;
	background: #f0f6fc;
}

.gosy-dropzone--over {
	border-color: #2271b1;
	background: #e5f0fa;
}

.gosy-dropzone-icon {
	font-size: 2.5rem;
	line-height: 1;
}

.gosy-dropzone-title {
	margin: 0;
	font-size: 1.1em;
	font-weight: 600;
	color: #1d2327;
}

.gosy-dropzone-or {
	margin: 0;
	color: #50575e;
	font-size: 0.9em;
}

.gosy-dropzone-browse {
	color: #2271b1;
	text-decoration: underline;
	cursor: pointer;
}

.gosy-dropzone-limits {
	margin: 4px 0 0;
	font-size: 0.8em;
	color: #8c8f94;
}

.gosy-file-input-hidden {
	display: none;
}

/* --------------------------------------------------------------------------
   Formulario de subida — lista de archivos (grid 2 columnas)
   -------------------------------------------------------------------------- */

.gosy-file-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

@media (max-width: 540px) {
	.gosy-file-list { grid-template-columns: 1fr; }
}

.gosy-file-item {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	grid-template-rows: auto auto;
	gap: 4px 10px;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	background: #fff;
}

.gosy-file-item--success { border-color: #00a32a; background: #f0fdf4; }
.gosy-file-item--error   { border-color: #d63638; background: #fcf0f1; }
.gosy-file-item--uploading { border-color: #72aee6; }

.gosy-file-thumb {
	grid-row: 1 / 3;
	width: 48px;
	height: 48px;
	border-radius: 4px;
	overflow: hidden;
	background: #f0f0f1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	flex-shrink: 0;
}

.gosy-file-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gosy-file-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.gosy-file-name {
	font-weight: 600;
	font-size: 0.9em;
	color: #1d2327;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gosy-file-size {
	font-size: 0.8em;
	color: #8c8f94;
}

.gosy-file-progress-wrap {
	grid-column: 2 / 4;
	height: 4px;
	background: #e2e4e7;
	border-radius: 2px;
	overflow: hidden;
}

.gosy-file-progress-bar {
	display: block;
	height: 100%;
	background: #2271b1;
	border-radius: 2px;
	transition: width 0.2s ease;
}

.gosy-file-item--success .gosy-file-progress-bar { background: #00a32a; }
.gosy-file-item--error   .gosy-file-progress-bar { background: #d63638; }

.gosy-file-status {
	font-size: 0.8em;
	color: #50575e;
	white-space: nowrap;
}

.gosy-file-item--success .gosy-file-status { color: #00a32a; }
.gosy-file-item--error   .gosy-file-status { color: #d63638; }

/* --------------------------------------------------------------------------
   Formulario de subida — pista de puntos (arriba, diseño pill)
   -------------------------------------------------------------------------- */

.gosy-points-hint {
	margin-bottom: 16px;
	padding: 14px 16px;
	background: #fffbea;
	border: 1px solid #f0c033;
	border-radius: 8px;
	font-size: 0.9em;
	color: #3c2e00;
}

.gosy-points-hint-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	display: none;
}

.gosy-points-hint-icon {
	font-size: 1.3rem;
	flex-shrink: 0;
}

.gosy-points-hint-title {
	font-size: 0.95em;
	font-weight: 700;
	color: #1d2327;
}

/* Fechas de la ventana */
.gosy-window-dates {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 20px;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0c033;
}

.gosy-window-date-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.85em;
	color: #5c4200;
}

.gosy-window-date-icon {
	font-size: 1rem;
	flex-shrink: 0;
}

.gosy-window-date-item strong {
	font-weight: 700;
	color: #1d2327;
}

/* Pills de tramos */
.gosy-points-tiers-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
	justify-content: center;
}

.gosy-points-tier-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 20px;
	background: #fff;
	border: 1.5px solid #d0a820;
	color: #5c4200;
	font-size: 0.85em;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gosy-points-tier-pill--reached {
	background: #f0c033;
	border-color: #c9a000;
	color: #1a1200;
}

.gosy-points-tier-pill--reached::before {
	content: '✓ ';
	margin-right: 5px;
}

/* Mensaje de progreso */
.gosy-points-hint-progress {
	margin: 0;
	font-size: 0.875em;
	color: #5c4200;
	line-height: 1.4;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Galería — trigger lightbox (reemplaza <a>)
   -------------------------------------------------------------------------- */

.gosy-lb-trigger {
	cursor: zoom-in;
	display: block;
	width: 100%;
	height: 100%;
}

.gosy-lb-trigger:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Lightbox overlay
   -------------------------------------------------------------------------- */

#gosy-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

#gosy-lightbox.gosy-lb-open {
	display: flex;
}

.gosy-lb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	cursor: zoom-out;
}

.gosy-lb-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 48px 64px;
	box-sizing: border-box;
}

.gosy-lb-media-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 100%;
}

.gosy-lb-img {
	max-width: 100%;
	max-height: calc(100vh - 96px);
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
	display: block;
}

.gosy-lb-video {
	max-width: 100%;
	max-height: calc(100vh - 96px);
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
	display: block;
	background: #000;
}

.gosy-lb-hidden {
	display: none !important;
}

/* Botón cerrar */
.gosy-lb-close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
	padding: 0;
}

.gosy-lb-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Botones prev / next */
.gosy-lb-nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
	padding: 0;
}

.gosy-lb-nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

.gosy-lb-prev { left: 12px; }
.gosy-lb-next { right: 12px; }

/* Footer: autor + contador */
.gosy-lb-footer {
	position: fixed;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(0, 0, 0, 0.5);
	padding: 6px 16px;
	border-radius: 20px;
	white-space: nowrap;
	max-width: calc(100vw - 48px);
	overflow: hidden;
}

.gosy-lb-author {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.85rem;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 260px;
}

.gosy-lb-counter {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.8rem;
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.gosy-lb-content { padding: 48px 12px; }
	.gosy-lb-prev    { left: 4px; }
	.gosy-lb-next    { right: 4px; }
	.gosy-lb-nav     { width: 36px; height: 36px; }
}

/* --------------------------------------------------------------------------
   Login prompt
   -------------------------------------------------------------------------- */

.gosy-gallery-login-prompt {
	text-align: center;
	padding: 24px;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
}

.gosy-gallery-btn {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 20px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.15s ease;
}

.gosy-gallery-btn:hover { opacity: 0.85; }

.gosy-gallery-btn-login {
	background: #2271b1;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Galería — grid
   -------------------------------------------------------------------------- */

.gosy-gallery-grid {
	display: grid;
	gap: 8px;
	/* En desktop usa el número de columnas configurado en el shortcode */
	grid-template-columns: repeat(var(--gosy-cols, 3), 1fr);
}

/* Columnas configurables via atributo del shortcode (columns="N") */
.gosy-gallery-cols-1 { --gosy-cols: 1; }
.gosy-gallery-cols-2 { --gosy-cols: 2; }
.gosy-gallery-cols-3 { --gosy-cols: 3; }
.gosy-gallery-cols-4 { --gosy-cols: 4; }
.gosy-gallery-cols-5 { --gosy-cols: 5; }
.gosy-gallery-cols-6 { --gosy-cols: 6; }

/*
 * Responsive: usa min() para que el breakpoint actúe como tope máximo
 * sin ignorar el atributo columns del shortcode.
 * Ej: columns="5" → desktop:5, tablet:3, móvil:2
 *     columns="2" → desktop:2, tablet:2, móvil:2 (nunca sube)
 */
@media (max-width: 768px) {
	.gosy-gallery-grid {
		grid-template-columns: repeat(min(var(--gosy-cols, 3), 3), 1fr);
	}
}
@media (max-width: 480px) {
	.gosy-gallery-grid {
		grid-template-columns: repeat(min(var(--gosy-cols, 2), 2), 1fr);
	}
}

/* --------------------------------------------------------------------------
   Galería — item
   -------------------------------------------------------------------------- */

.gosy-gallery-item {
	position: relative;
	overflow: hidden;
	background: #1a1a1a;
	border-radius: 4px;
	aspect-ratio: 1 / 1;
}

.gosy-gallery-link {
	display: block;
	width: 100%;
	height: 100%;
}

.gosy-gallery-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.gosy-gallery-link:hover .gosy-gallery-img,
.gosy-gallery-link:focus .gosy-gallery-link .gosy-gallery-img {
	transform: scale(1.04);
	opacity: 0.88;
}

/* --------------------------------------------------------------------------
   Galería — vídeos
   -------------------------------------------------------------------------- */

.gosy-gallery-video-link {
	position: relative;
}

.gosy-gallery-play-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
	pointer-events: none;
	transition: transform 0.15s ease;
}

.gosy-gallery-video-link:hover .gosy-gallery-play-icon {
	transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   Ranking de contribuidores
   -------------------------------------------------------------------------- */

.gosy-gallery-top-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gosy-gallery-top-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-bottom: 1px solid #e5e5e5;
}

.gosy-gallery-top-item:last-child {
	border-bottom: none;
}

/* Top 3: destacados */
.gosy-gallery-top-pos-1 { background: #fffbea; }
.gosy-gallery-top-pos-2 { background: #f5f5f5; }
.gosy-gallery-top-pos-3 { background: #fff4ef; }

.gosy-gallery-top-position {
	font-weight: 700;
	font-size: 1.1em;
	min-width: 28px;
	text-align: center;
	color: #555;
}

.gosy-gallery-top-pos-1 .gosy-gallery-top-position { color: #c9a000; }
.gosy-gallery-top-pos-2 .gosy-gallery-top-position { color: #888; }
.gosy-gallery-top-pos-3 .gosy-gallery-top-position { color: #b05c2a; }

.gosy-gallery-top-avatar img {
	display: block;
	border-radius: 50%;
}

.gosy-gallery-top-name {
	flex: 1;
	font-weight: 600;
}

.gosy-gallery-top-count {
	font-size: 0.875em;
	color: #666;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Mensajes de estado
   -------------------------------------------------------------------------- */

.gosy-gallery-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin: 16px 0;
	font-size: 0.95em;
}

.gosy-gallery-empty {
	background: #f0f6fc;
	border-left: 4px solid #72aee6;
	color: #2271b1;
}

.gosy-gallery-error {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	color: #8a1f1f;
}

/* --------------------------------------------------------------------------
   Lightbox — botón de reporte
   -------------------------------------------------------------------------- */

.gosy-lb-report-btn {
	flex-shrink: 0;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.65);
	border-radius: 50%;
	width: 28px;
	height: 28px;
	font-size: 0.9rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
	margin-left: auto;
}

.gosy-lb-report-btn:hover {
	background: rgba(214, 54, 56, 0.25);
	border-color: #d63638;
	color: #ff8080;
}

/* --------------------------------------------------------------------------
   Modal de reporte de imagen
   -------------------------------------------------------------------------- */

#gosy-report-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999999;
	align-items: flex-end;
	justify-content: center;
}

#gosy-report-modal.gosy-report-modal--open {
	display: flex;
}

.gosy-report-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.gosy-report-panel {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 16px 16px 0 0;
	padding: 24px 24px 32px;
	width: 100%;
	max-width: 480px;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
	animation: gosyReportSlideUp 0.22s ease;
}

@keyframes gosyReportSlideUp {
	from { transform: translateY(40px); opacity: 0; }
	to   { transform: translateY(0);   opacity: 1; }
}

.gosy-report-title {
	margin: 0 0 8px;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1d2327;
}

.gosy-report-subtitle {
	margin: 0 0 12px;
	font-size: 0.9rem;
	color: #50575e;
}

.gosy-report-reasons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.gosy-report-reason-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #1d2327;
	cursor: pointer;
}

.gosy-report-reason-label input[type="radio"] {
	accent-color: #d63638;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.gosy-report-details-label {
	display: block;
	font-size: 0.85rem;
	color: #50575e;
	margin-bottom: 6px;
}

.gosy-report-details {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 0.9rem;
	resize: vertical;
	font-family: inherit;
}

.gosy-report-details:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.gosy-report-feedback {
	margin: 10px 0 0;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 0.875rem;
}

.gosy-report-feedback--ok  { background: #f0fdf4; color: #00a32a; border: 1px solid #00a32a; }
.gosy-report-feedback--err { background: #fcf0f1; color: #d63638; border: 1px solid #d63638; }

.gosy-report-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	justify-content: flex-end;
}

.gosy-report-cancel {
	padding: 8px 18px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	font-size: 0.9rem;
	cursor: pointer;
	color: #50575e;
}

.gosy-report-cancel:hover { background: #f6f7f7; }

.gosy-report-submit {
	padding: 8px 20px;
	border: none;
	border-radius: 4px;
	background: #d63638;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.gosy-report-submit:hover    { background: #b02627; }
.gosy-report-submit:disabled { background: #c3c4c7; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   [gosy_all_galleries] — Grid de álbumes   GoSocial brand palette:
     --gs-orange:  #FF5722   (naranja primario)
     --gs-amber:   #FFA000   (ámbar / acento)
     --gs-dark:    #1B1F3B   (azul muy oscuro / navy)
     --gs-light:   #FFF8F5   (crema cálido)
   -------------------------------------------------------------------------- */

:root {
	--gs-orange:      #fe7900;
	--gs-orange-hover:#e66d00;
	--gs-amber:       #fe7900;
	--gs-dark:        #1B1F3B;
	--gs-light:       #FFF8F5;
	--gs-border:      rgba(222,226,230,1);
}

.gosy-albums-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(var(--gosy-album-cols, 3), 1fr);
}

.gosy-albums-cols-1 { --gosy-album-cols: 1; }
.gosy-albums-cols-2 { --gosy-album-cols: 2; }
.gosy-albums-cols-3 { --gosy-album-cols: 3; }
.gosy-albums-cols-4 { --gosy-album-cols: 4; }

@media (max-width: 900px) {
	.gosy-albums-grid { --gosy-album-cols: 2; }
}
@media (max-width: 540px) {
	.gosy-albums-grid { --gosy-album-cols: 1; }
}

/* Tarjeta de álbum */
.gosy-album-card {
	background: #fff;
	border: 1px solid rgba(222,226,230,1);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(27,31,59,0.05);
	transition: box-shadow 0.18s ease, transform 0.18s ease;
	display: flex;
	flex-direction: column;
}

.gosy-album-card:hover {
	box-shadow: 0 6px 20px rgba(27,31,59,0.12);
	transform: translateY(-3px);
}

.gosy-album-card--open {
	border-color: 1px solid rgba(222,226,230,1);
	border-width: 1px;
}

/* Portada */
.gosy-album-cover-link {
	display: block;
	text-decoration: none;
}

.gosy-album-cover {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--gs-dark);
	overflow: hidden;
}

.gosy-album-cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.22s ease;
}

.gosy-album-cover-link:hover .gosy-album-cover-img {
	transform: scale(1.05);
}

.gosy-album-cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 3rem;
	color: rgba(255,255,255,0.15);
	background: linear-gradient(135deg, var(--gs-dark) 0%, #2e3460 100%);
}

/* Info de la tarjeta */
.gosy-album-info {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 4px;
}

.gosy-album-title {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

/* Cover div trigger */
.gosy-album-cover-link.gosy-album-lb-trigger {
	cursor: pointer;
}

.gosy-album-cover-link.gosy-album-lb-trigger:focus-visible {
	outline: 2px solid var(--gs-orange);
	outline-offset: 2px;
}

/* Título como botón — hereda estilos del texto */
.gosy-album-title-btn {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font: inherit;
	color: var(--gs-dark);
	text-align: left;
	line-height: inherit;
	font-weight: 600;
}

.gosy-album-title-btn:hover { color: var(--gs-orange); }

.gosy-album-title a {
	color: var(--gs-dark);
	text-decoration: none;
}

.gosy-album-title a:hover { color: var(--gs-orange); }

.gosy-album-date {
	margin: 0;
	font-size: 0.82rem;
	color: #8c8f94;
}

.gosy-album-counts {
	margin: 0;
	font-size: 0.82rem;
	color: #50575e;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gosy-album-empty-note {
	color: var(--gs-orange);
	font-style: italic;
	font-size: 0.82rem;
}

/* Botones de acción */
.gosy-album-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
}

.gosy-album-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: filter 0.15s ease, transform 0.1s ease;
	white-space: nowrap;
	font-family: inherit;
}

.gosy-album-btn:hover  { filter: brightness(1.08); }
.gosy-album-btn:active { transform: scale(0.97); }

.gosy-album-btn--view {
	background: var(--gs-light);
	color: var(--gs-dark);
	border: 1.5px solid #e0d8d0;
	flex: 1;
}

.gosy-album-btn--upload {
	background: var(--gs-orange);
	color: #fff;
	flex: 1;
}

.gosy-album-btn--upload:hover {
	filter: none;
	background: var(--gs-orange-hover);
}

.gosy-album-btn--close {
	background: #f1f3f4 !important;
	color: #50575e !important;
}

.gosy-album-btn--login {
	background: var(--gs-orange);
	color: #fff;
	flex: 1;
}

.gosy-album-btn--login:hover {
	filter: none;
	background: var(--gs-orange-hover);
}

/* --------------------------------------------------------------------------
   [gosy_all_galleries] — Drawer de subida inline
   -------------------------------------------------------------------------- */

.gosy-album-drawer {
	grid-column: 1 / -1;
	background: var(--gs-light);
	border: 2px solid var(--gs-orange);
	border-radius: 12px;
	margin: -8px 0 8px;
	animation: gosyDrawerIn 0.22s ease;
	overflow: hidden;
}

@keyframes gosyDrawerIn {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.gosy-album-drawer-inner {
	padding: 24px;
	position: relative;
}

.gosy-album-drawer-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 0;
	color: var(--gs-dark);
	font-size: 0.9rem;
}

.gosy-album-drawer-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(254,121,0,0.2);
	border-top-color: var(--gs-orange);
	border-radius: 50%;
	animation: gosySpin 0.7s linear infinite;
	flex-shrink: 0;
}

@keyframes gosySpin {
	to { transform: rotate(360deg); }
}

.gosy-album-drawer-content { min-height: 40px; }

.gosy-album-drawer-close {
	margin-top: 16px;
	padding: 6px 14px;
	background: none;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	font-size: 0.82rem;
	color: #50575e;
	cursor: pointer;
	transition: background 0.15s ease;
	display: block;
}

.gosy-album-drawer-close:hover { background: #f0f0f1; }

/* --------------------------------------------------------------------------
   [gosy_all_galleries] — Paginación
   -------------------------------------------------------------------------- */

.gosy-albums-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 32px 0 8px;
	flex-wrap: wrap;
}

.gosy-albums-page-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 20px;
	border-radius: 8px;
	border: 1.5px solid var(--gs-border);
	background: #fff;
	color: var(--gs-dark);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gosy-albums-page-btn:hover {
	background: var(--gs-orange);
	border-color: var(--gs-orange);
	color: #fff;
}

.gosy-albums-page-info {
	font-size: 0.875rem;
	color: #6c757d;
	padding: 0 4px;
}

/* --------------------------------------------------------------------------
   Botón toggle "Subir fotos" ([gosy_gallery_upload mode="toggle"])
   -------------------------------------------------------------------------- */

.gosy-upload-toggle-wrap {
	margin-bottom: 12px;
}

.gosy-upload-toggle-btn {
	display: inline-block;
	width: 100%;
	align-items: center;
	gap: 7px;
	padding: 9px 18px;
	background: var(--gs-orange, #fe7900);
	color: #fff;
	border: none;
	border-radius: 15px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	line-height: 1.3;
}

.gosy-upload-toggle-btn:hover,
.gosy-upload-toggle-btn:focus-visible {
	background: var(--gs-orange-hover, #e66d00);
	outline: none;
}

.gosy-upload-toggle-btn:active {
	transform: scale(0.97);
}

.gosy-upload-toggle-btn svg {
	flex-shrink: 0;
}

.gosy-upload-toggle-body {
	margin-top: 12px;
	animation: gosyToggleFadeIn 0.2s ease;
}

@keyframes gosyToggleFadeIn {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Paginación de [gosy_gallery per_page="N"]
   -------------------------------------------------------------------------- */

.gosy-gallery-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 20px 0 8px;
	flex-wrap: wrap;
}

.gosy-gallery-page-btn {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	border-radius: 8px;
	border: 1.5px solid rgba(222, 226, 230, 1);
	background: #fff;
	color: #1B1F3B;
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gosy-gallery-page-btn:hover:not(:disabled) {
	background: var(--gs-orange, #fe7900);
	border-color: var(--gs-orange, #fe7900);
	color: #fff;
}

.gosy-gallery-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.gosy-gallery-page-info {
	font-size: 0.82rem;
	color: #6c757d;
	white-space: nowrap;
}
