@charset "UTF-8";
 .container-works {
max-inline-size: 1300px;
margin-inline: auto;
}
.masonry-header {
text-align: center;
-webkit-margin-after: 70px;
margin-block-end: 70px;
} .masonry-grid-wp {
display: grid;
grid-template-columns: 1fr;
grid-auto-rows: 350px;
gap: 0;
-webkit-padding-after: 60px;
padding-block-end: 60px;
} .ms-item {
position: relative;
overflow: hidden;
background-color: #333;
-webkit-animation: msFadeIn 0.6s ease-out forwards;
animation: msFadeIn 0.6s ease-out forwards;
}
.ms-item:hover .ms-content .ms-title,
.ms-item:hover .ms-content .ms-divider {
opacity: 0;
}
@-webkit-keyframes msFadeIn {
from {
opacity: 0;
-webkit-transform: translateY(10px);
transform: translateY(10px);
}
to {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
@keyframes msFadeIn {
from {
opacity: 0;
-webkit-transform: translateY(10px);
transform: translateY(10px);
}
to {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
.ms-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
-webkit-transition: -webkit-transform 0.7s ease-in-out;
transition: -webkit-transform 0.7s ease-in-out;
transition: transform 0.7s ease-in-out;
transition: transform 0.7s ease-in-out, -webkit-transform 0.7s ease-in-out;
z-index: 1;
}
.ms-item:hover .ms-bg {
-webkit-transform: scale(1.1);
transform: scale(1.1);
} .ms-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 4;
display: grid;
place-content: center;
place-items: center;
background: #000; -webkit-transition: -webkit-transform 0.6s;
transition: -webkit-transform 0.6s;
transition: transform 0.6s;
transition: transform 0.6s, -webkit-transform 0.6s;
-webkit-transform: translateY(-100%);
transform: translateY(-100%);
padding-inline: 20px;
text-align: center;
}
.ms-item:hover .ms-overlay {
-webkit-transform: translateY(0);
transform: translateY(0);
} .ms-content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 3;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
text-align: center;
color: #fff;
padding: 2rem;
background: rgba(0, 0, 0, 0.3);
}
.ms-title {
font-family: "Montserrat", sans-serif;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 1.5rem;
margin-bottom: 0.5rem;
font-weight: 700;
line-height: 1.2;
color: #fff;
-webkit-transition: opacity 0.3s;
transition: opacity 0.3s;
}
.ms-divider {
width: 30px;
height: 4px;
background-color: #fff;
margin: 1rem 0;
-webkit-transition: opacity 0.3s;
transition: opacity 0.3s;
}
.ms-meta {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 1px;
-webkit-margin-after: 16px;
margin-block-end: 16px;
color: #eee;
}
.ms-excerpt {
font-size: 0.9rem;
max-width: 80%;
-webkit-margin-after: 1.5rem;
margin-block-end: 1.5rem;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
color: #eee;
}
.ms-btn {
padding: 0.5rem 1.5rem;
border: 1px solid #fff;
border-radius: 50px;
color: #fff;
text-decoration: none;
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 1px;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.ms-btn:hover {
background-color: #fff;
color: #621940;
} @media (min-width: 768px) {
.masonry-grid-wp {
grid-template-columns: repeat(3, 1fr);
} .ms-item:nth-child(10n+1) {
grid-column: span 2;
} .ms-item:nth-child(10n+3) {
grid-row: span 2;
} .ms-item:nth-child(10n+4) {
grid-column: span 2;
} .ms-item:nth-child(10n+7) {
grid-column: span 2;
} .ms-item:nth-child(10n+10) {
grid-column: span 2;
}
} .masonry-pagination {
-webkit-margin-before: 48px;
margin-block-start: 48px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
gap: 1rem;
}
.masonry-pagination .page-numbers {
padding: 0.5rem 1rem;
border: 1px solid #ddd;
color: #333;
text-decoration: none;
}
.masonry-pagination .page-numbers.current {
background-color: #333;
color: #fff;
border-color: #333;
} .load-more-wrapper {
margin-top: 4rem;
text-align: center;
min-height: 60px;
}
.load-more-btn {
display: inline-block;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 2px;
padding: 1rem 3rem;
border: 2px solid #333;
color: #333;
text-decoration: none;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
cursor: pointer;
background: transparent;
}
.load-more-btn:hover {
background-color: #333;
color: #fff;
}
.load-more-btn.loading {
opacity: 0.5;
cursor: wait;
}
.load-more-btn.hidden {
display: none !important;
} .ms-item[data-category*=produccion-audiovisual] .ms-overlay {
background-color: rgba(209, 102, 146, 0.6);
}
.ms-item[data-category*=storytelling-narrativa] .ms-overlay {
background-color: rgba(129, 184, 152, 0.6);
}
.ms-item[data-category*=digital-web] .ms-overlay {
background-color: rgba(129, 179, 168, 0.6);
}
.ms-item[data-category*=marca-publicidad] .ms-overlay {
background-color: rgba(205, 105, 105, 0.6);
}
.ms-item[data-category*=motion-ia] .ms-overlay {
background-color: rgba(216, 86, 64, 0.6);
} .embla {
overflow: hidden;
position: relative;
}
.embla__container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-ms-touch-action: pan-y;
touch-action: pan-y;
margin-left: -1rem; }
@media only screen and (max-width: 600px) {
.embla__container {
-webkit-padding-after: 50px;
padding-block-end: 50px;
}
}
.embla__controls {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
width: calc(100% - 30px);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-inline: auto;
gap: 1rem;
position: absolute;
left: 0;
right: 0;
z-index: 3;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
top: 50%;
}
@media only screen and (max-width: 600px) {
.embla__controls {
display: none;
}
}
.embla__controls button {
cursor: pointer;
background: #fff;
color: #333;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
}
.embla__controls button:hover {
opacity: 0.8;
}
.embla__slide {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%; min-width: 0;
padding-left: 1rem;
max-block-size: 950px;
}
.embla__slide img {
-o-object-fit: cover;
object-fit: cover;
width: 100%;
height: 100%;
}
.embla__slide video {
width: 100%;
height: 100%;
background-color: #000;
}
.embla__dots {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
position: absolute;
bottom: 10px;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
left: 50%;
gap: 0.5rem;
}
@media only screen and (max-width: 600px) {
.embla__dots {
bottom: 20px;
}
}
.embla__dot {
width: 16px;
height: 16px;
border-radius: 50%;
border: none;
background: #333;
cursor: pointer;
padding: 0;
-webkit-transition: background-color 0.3s ease;
transition: background-color 0.3s ease;
}
@media only screen and (max-width: 600px) {
.embla__dot {
width: 12px;
height: 12px;
}
}
.embla__dot--active {
background-color: #fff;
}
@media only screen and (max-width: 600px) {
.embla__dot--active {
border: 1px solid currentColor;
}
}
.embla__dot:hover {
background-color: #fff;
}
.work-pagination {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-margin-before: 50px;
margin-block-start: 50px;
-webkit-padding-before: 50px;
padding-block-start: 50px;
-webkit-margin-after: 100px;
margin-block-end: 100px;
border-top: 1px solid #ddd;
}
.work-pagination a {
text-decoration: none;
font-weight: bold;
font-size: 20px;
}
.work-pagination a:hover {
text-decoration: underline;
}
.vimeo-link {
padding-left: 40px;
position: relative;
font-weight: bold;
display: block;
-webkit-margin-before: 60px;
margin-block-start: 60px;
}
.vimeo-link::before {
content: "";
background-image: url(//pomelomedia.es/wp-content/themes/pomelo/assets/images/vimeo-icon-single.svg);
width: 32px;
height: 32px;
left: 0;
background-size: cover;
position: absolute;
}
.link {
padding-left: 35px;
position: relative;
font-weight: bold;
-webkit-margin-before: 60px;
margin-block-start: 60px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.link::before {
content: "";
background-image: url(//pomelomedia.es/wp-content/themes/pomelo/assets/images/link-solid.svg);
width: 27px;
height: 23px;
left: 0;
background-size: cover;
position: absolute;
}