/*!**************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/mediashelf/style.scss ***!
  \**************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
/**
 * The following styles get applied both on the front of your site
 * and in the editor.
 *
 * Replace them with your own styles or remove the file completely.
 */
.mediashelf-date-filter {
  display: none;
}

.mediashelf-date-filter.is-loaded {
  display: block;
}

.wp-block-create-block-mediashelf {
  color: #000000;
  border: none;
  padding: 2px;
}

.mediashelf-lightbox-content {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mediashelf-lightbox-content.loaded {
  opacity: 1;
}

.mediashelf-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.mediashelf-item {
  flex: 1 1 calc(25% - 16px);
  max-width: calc(25% - 16px);
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .mediashelf-item {
    flex: 1 1 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
}
@media (max-width: 768px) {
  .mediashelf-item {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }
}
@media (max-width: 480px) {
  .mediashelf-item {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }
}
.mediashelf-item img,
.mediashelf-item video {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.mediashelf-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}

.mediashelf-extension {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  margin-top: 6px;
  padding: 2px 6px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
}

.mediashelf-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.mediashelf-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.mediashelf-lightbox-content {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mediashelf-lightbox-content.loaded {
  opacity: 1;
}

.mediashelf-lightbox img,
.mediashelf-lightbox video {
  width: 100%;
  max-width: 100%;
  max-height: 80vh;
  background: #000;
  display: block;
}

.mediashelf-lightbox-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
}

.mediashelf-lightbox-controls button {
  margin: 3px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.1607843137);
  color: #ffffff;
  border: none;
  font-size: 28px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.mediashelf-lightbox-controls button:hover {
  background: rgba(124, 124, 124, 0.1607843137);
}

.mediashelf-lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
}

html.mediashelf-lightbox-open,
body.mediashelf-lightbox-open {
  overflow: hidden !important;
  touch-action: none;
}

.mediashelf-file-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  text-align: center;
}

.mediashelf-file-wrapper {
  position: relative;
  overflow: hidden;
}

.mediashelf-extension {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px;
  font-size: 18px;
}

.mediashelf-lightbox-title {
  text-align: center;
  color: white;
  font-size: 18px;
  margin-top: 10px;
}

.mediashelf-audio-wrapper {
  align-items: center;
  width: 600px;
  display: flex;
  justify-content: center;
  min-height: 300px;
}

@media (max-width: 768px) {
  .mediashelf-audio-wrapper {
    width: 600px;
  }
}
@media (max-width: 568px) {
  .mediashelf-audio-wrapper {
    width: 300px;
  }
}
.mediashelf-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid #ccc;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.mediashelf-lightbox-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0; /* skryť prípadný text */
}

.mediashelf-lightbox-controls .dashicons {
  font-size: 32px; /* veľkosť ikony */
  width: 32px;
  height: 32px;
}

/*# sourceMappingURL=style-index.css.map*/