
.gallery
{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 16px;
  margin: 20px;

  padding-bottom: 20px;
}

.gallery .item
{
  background-color: #ffffff;
  
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out;
  border-radius: 20;/*4px;*/
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Ensures the title stays at the bottom */
}

.gallery .item img
{
  width: 100%;
  height: auto;
  display: block;
}

.gallery .item h3
{
  padding: 8px;
  margin-top: auto;
  text-align: center;
  background-color: #fefefe;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  /* Ensures padding doesn't affect width */
  font-size: 18px !important;
}

.gallery .item:hover
{
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


  .btnSheet
{
  background-color: rgb(255, 255, 255);
  color: rgb(133, 133, 133);
  border: 1px solid rgb(133, 133, 133);
  border-radius: 50px;
  padding: 3px;    /* padding: 10px 20px; */
  text-decoration: none;
  text-align: center;
  transition: background-color 0.7s, color 0.5s;
  margin-left: 3%;
  margin-right: 3%;
  margin-bottom: 5px;
}

.btnSheet:hover
{
  background-color: rgb(133, 133, 133);
  color: white;
}




/* ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄*/
/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  MEDIAS  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ */
/* ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ Mobile ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
@media (min-width: 320px) and (max-width: 481px)                /* Mobile (hasta 481px) */
{
  .gallery  {  grid-template-columns: repeat(2, 1fr); }
  .gallery .item  {   height: 250px;  }
  .gallery .item h3{   padding: 2px;   font-size: 14px !important; }
  .img_logo { height: 100px;}
}
@media (min-width: 481px) and (max-width: 767px)                /* Mobile (hasta 767px) Precticamente todos */
{
  .gallery  {  grid-template-columns: repeat(2, 1fr); }
  .gallery .item  {   height: 250px;  }
  .gallery .item h3{   padding: 2px;   font-size: 14px !important; }
  .img_logo { height: 100px;}
}
@media (min-width: 768px) and (max-width: 991px)                /* Tablet/Mobile grande - 768px a 991px */
{
  .gallery  {  grid-template-columns: repeat(3, 1fr); }
  .gallery .item  {   height: 250px;  }
  .gallery .item h3{   padding: 2px;   font-size: 16px !important; }
}

/* ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ Laptop ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
@media only screen and (min-width: 992px) and (max-width: 1023px)     /* Laptop pequeña (768px - 1023px) */
{
  .gallery  {  grid-template-columns: repeat(4, 1fr); }
}
@media only screen and (min-width: 1024px) and (max-width: 1279px)    /* Laptop grande (1024px - 1279px) */
{
  .gallery  {  grid-template-columns: repeat(4, 1fr); }
}

/* ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ Desktop ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
@media only screen and (min-width: 1280px) and (max-width: 1439px)    /* Desktop pequeño (1280px - 1439px) */
{
  .gallery  {  grid-template-columns: repeat(4, 1fr); }
}
@media only screen and (min-width: 1440px)                            /* Desktop grande (1440px y superior) */
{
  .gallery  {  grid-template-columns: repeat(4, 1fr); }
}
