/*
Theme Name: My Listing
Theme URI: https://mylistingtheme.com/
Author: 27collective
Author URI: http://27collective.net/
Description: MyListing - Directory & Listing WordPress Theme
Version: 2.11.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-listing
Tags: one-column, two-columns, three-columns, left-sidebar, right-sidebar, grid-layout, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool.
*/

/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}

.sticky, .bypostauthor, .gallery-caption { font-size: 14px; }




#fototeca-dropzone {
  display: grid;
  grid-template-columns: repeat(4, 150px);
  grid-auto-rows: 150px;
  gap: 12px;
  max-height: 510px;
  overflow-y: auto;
  padding: 0 6px 6px 0;
  border: none !important;
}


#fototeca-dropzone::-webkit-scrollbar {
  width: 6px;
}
#fototeca-dropzone::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#fototeca-dropzone .dz-upload-box,
#fototeca-dropzone .dz-preview-thumb {
  width: 150px;
  height: 150px;
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
}

.dz-upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dz-upload-box:hover {
  background-color: #f0f0f0;
}

.upload-icon,
.fototeca-upload-placeholder i {
  font-size: 32px;
  color: #555;
}

.dz-preview-thumb {
  position: relative;
}

.dz-preview-thumb img,
.dz-preview-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dz-remove-thumb {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 50%;
  font-size: 16px;
  line-height: 22px;
  width: 24px;
  height: 24px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
}

/* Estilos adicionales para carpetas que comparten layout */
.dropzone-carpeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 20px;
  background: #fafafa;
}

/* Responsive */
@media (max-width: 768px) {
	.carpetas-grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 12px;
		padding: 0 8px;
		margin-left: -8px;
	}

	.carpeta-thumb-wrapper {
		min-width: calc(100vw / 3.3); /* 3 enteras + 1 medio */
		scroll-snap-align: start;
	}
}

@media (max-width: 768px) {
	/* Archivos dentro de carpetas abiertas */
	.archivos-carpeta {
		display: grid !important;
		grid-template-columns: repeat(5, 1fr) !important;
		gap: 6px !important;
		padding: 0 6px;
		max-height: none; /* importante si hay muchos archivos */
		overflow: visible;
	}

	.archivos-carpeta img,
	.archivos-carpeta video {
		width: 100% !important;
		aspect-ratio: 1 / 1 !important;
		height: auto !important;
		object-fit: cover;
	}
}


	/* Fototeca – que se vean 5 columnas reales, sin scroll lateral */
.fototeca-gallery {
		grid-template-columns: repeat(5, 1fr) !important;
		grid-auto-rows: auto !important; /* ← Esto corrige el espacio vertical */
		gap: 6px !important;
		padding: 0 6px;
		overflow-x: hidden !important;
	}


	.fototeca-gallery img,
.fototeca-gallery video {
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	height: auto !important;
	object-fit: cover;
}
}


.row.my-listings-stat-box {
    margin-right: -10px;
    margin-left: -10px;
    display: none !important;
}

.stat-card a {
    display: none !important;
    transition: .15s ease;
}
