.dps-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.dps-gallery {
    display: block; /* Masonry calcola posizioni */
    margin: 0 auto;
}

.grid-sizer,
.dps-item {
    width: 30%; /* 3 colonne base */
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .grid-sizer,
    .dps-item {
        width: 45%; /* 2 colonne tablet */
    }
}

@media (max-width: 600px) {
    .grid-sizer,
    .dps-item {
        width: 100%; /* 1 colonna mobile */
    }
}

.dps-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.dps-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dps-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.3s;
}

.dps-item:hover img {
    // transform: scale(1.05);
    opacity: .8;
}

.dps-item::after {
    content: '✔';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.dps-item.selected::after {
    opacity: 1;
}

.dps-data,
.dps-controls {
  display: inline-flex;
  gap: 32px;
}

.dps-controls {
width: 100%;
justify-content: center;
  margin-bottom: 32px;
}

.dps-controls > button {
    border-color: #c48f56;
    display: inline-block;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    border-width: 1px;
    border-style: solid;
    padding: 10px 20px;
    cursor: pointer;
    background: transparent;
    border-radius: 0;
    color: inherit;
    position: relative;
    pointer-events: all;
    border-width: 1px;
    transition: all 200ms ease-in-out;
}

.dps-controls > button:hover {
background-color: #c48f56;
color: #FFFFFF;
}

.dps-controls > button#download-selected {
    border-color: #c48f56;
    display: inline-block;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    border-width: 1px;
    border-style: solid;
    padding: 10px 20px;
    cursor: pointer;
background-color: #c48f56;
    border-radius: 0;
color: #FFFFFF;
    position: relative;
    pointer-events: all;
    border-width: 1px;
    transition: all 400ms ease-in-out;
}

.dps-controls > button#download-selected:hover {
background-color: transparent;
color: inherit;
}

.dps-filename {
    text-align: center;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #555;
    word-break: break-word;
}

.dps-item {
    transition: opacity 0.3s ease, transform 0.4s ease;
}