/*
Theme Name:   Costume
Description:  A Divi Child Theme
Author:       Punt Zero
Author URL:   https://www.puntzero.cat
Template:     Divi
Version:      1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  costume
*/
#main-header {
  box-shadow: none;
}
#footer-bottom {
  height: 0;
  padding:0;
  background:transparent;
}
/* 
Masonry Gallery by WP Zone
https://wpzone.co/wordpress-and-divi-code-snippets/
*/

.wpz-gallery-masonry .et_pb_gallery_items {
    column-count: 3; /* number of columns for desktop */
    column-gap: 15px;  /* column spacing */
}

.wpz-gallery-masonry .et_pb_gallery .et_pb_gallery_items .et_pb_gallery_item {
    width: 100%;
    margin: 0px 0px 10px 0!important; /* replace 10px to change row spacing */
    float: none!important; 
}
.prenda-galeria {
    text-align: center;
}
.prenda-imagen-grande-contenedor {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center; 
    justify-content: center; 
    height: 84vh;
    width: 100%;
}
.imagen-grande {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0; 
    z-index: 0; 
    transition: opacity 0.8s ease-in-out; 
}

.imagen-grande.active {
    opacity: 1; 
    z-index: 1; 
}
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: #333;
    cursor: pointer;
    user-select: none;
    z-index: 10; 
}
.left-arrow {
    left: 20px;
}
.right-arrow {
    right: 20px;
}
.prenda-imagenes-miniaturas {
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
    gap:5px;
}
.prenda-imagen-miniatura {
  /* flex:1; */
}
.prenda-imagen-miniatura img {
  width: auto !important;
  max-height: 100px;
  cursor: pointer;
  transition: border-color 0.3s;
}
.prenda-imagen-miniatura img:hover {
  opacity: .7;
}
.nav-arrow svg {
  width: 40px;
  height: 40px;
}
.nav-arrow svg path {
  stroke: #fff;
}
.nav-arrow:hover svg path {
  stroke: #6A7127;
}
.costume-taxonomy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.costume-taxonomy-item {
  text-align: center;
  flex-basis: 32%;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  list-style: none;
}
.prenda-item {
  text-align: center;
  flex-basis: 33%;
  list-style: none;
}
.costume-taxonomy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.tax-costume .prenda-item h3,
.costume-taxonomy-item h3 {
    font-size: 1.2rem;
    margin: 10px 0;
}
.costume-taxonomy-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
/* TAXONOMY COSTUME */
.tax-costume .pagination {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}
.tax-costume .pagination .page-numbers {
  border: 1px solid;
  padding: 3px 12px;
}
.tax-costume .pagination .page-numbers.current,
.tax-costume .pagination .page-numbers:hover {
  background: #687113;
  color: white;
}
.tax-costume #main-content {
  padding:10%;  
}
.costume-taxonomy-hierarchy ul,
.costume-taxonomy-hierarchy li,
.costume-taxonomy-hierarchy {
  list-style: none;
  padding:0 !important;
}
.costume-taxonomy-hierarchy li a{
  border:1px solid;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 5px;
  width: auto;
}
.tax-costume #et-main-area .container {
  padding: 140px 0;
  max-width: none;
  width: 100%;
}
.tax-costume #et-main-area .container h1 {
  font-weight: 300;
  text-transform: uppercase;
  font-size: 34px;
  color: #687113 !important;
  letter-spacing: 2px;
  line-height: 1.2em;
  text-align: center;
  margin-bottom: 20px;
}
.tax-costume #et-main-area .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content:space-between;  
}
.back-button-container {
  position: absolute;
  right:3%;
  margin:10px auto 10px;
}
.back-button-container a{
  background: #687113;
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
}
.back-button-container a:hover {
  background: #474d0d;
  color: white;
}
/* ✅ Masonry Grid */
.grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}
/* Estil de cada ítem dins el Masonry */
.prenda-item {
    width: calc(33.333% - 20px); /* 3 columnes, ajusta segons necessitat */
    margin: 5px;
    overflow: hidden;
    position: relative;
    background-color: rgba(127, 143, 17, 1);
    transition: transform 300ms ease 0ms, background-color 300ms ease 0ms, background-image 300ms ease 0ms;
}
/* Imatges dins del grid */
.prenda-item img {
    width: 100%;
    height: auto;
    display: block;
    transition:all ease-in-out 0.2s;

}

/* Títols dins de cada ítem */
.prenda-item h3 {
    padding: 10px;
    position: absolute;
    top:45%;
    left:0;
    right:0;
    text-align: center;
    opacity: 0;
    
    text-transform: uppercase;
    font-size: 22px;
    color: #ffffff !important;
    text-align: center;
    text-shadow: 0.08em 0.08em 0.08em rgba(0, 0, 0, 0.4);
}
.prenda-item:hover img {
    opacity: .5;
    transform: scaleX(1.05) scaleY(1.05) !important;
}
.prenda-item:hover h3 {
  opacity: 1;
}
.prenda-item:hover {
}
/* Botó per tornar enrere */
.back-button-container {
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073e6;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.back-button:hover {
    background-color: #005bb5;
}
.et-db #et-boc .et-l .et_pb_section_0_tb_header.et_pb_section--fixed {
  /* background:rgba(255,255,255,.5) !important; */
}
/* ✅ Responsivitat */
@media (max-width: 1024px) {
    .prenda-item {
        width: calc(50% - 20px); /* 2 columnes en tablets */
    }
}

@media (max-width: 768px) {
    .prenda-item {
        width: 100%; /* 1 columna en mòbils */
    }
}
@media only screen and (max-width: 1200px) { 
  .wpz-gallery-masonry .et_pb_gallery .et_pb_gallery_items { 
      column-count: 2;  /* number of columns for tablet devices */
  } 
}

@media only screen and (max-width: 767px) {
  .wpz-gallery-masonry .et_pb_gallery .et_pb_gallery_items {
    column-count: 1;  /* number of columns for mobile devices */
  }
  .prenda-imagen-grande-contenedor,
  .prenda-imagen-grande-contenedor img {
    width: 100vw !important;
  }
}
