/**
 * This file is part of AKB - athena MODULE
 * @package     AKB Project - AKB Athena Custom Module 
 * @version     1.2.6
 * @author      Andrea Bini
 * @copyright   Copyright (C) 2023-2024 Andrea Bini - AKB s.r.l.c.r.
 * @license     GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html 
 * @link        http://www.akbproject.com
 * Email:       info@akbproject.com
 */

.AKBequalcontainer,
.AKBathena-module {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mod-akbathena {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.akbathena.only-editor {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mod-akbathena-vertical {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.mod-akbathena-horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.mod-akbathena-image,
.mod-akbathena-textarea {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod-akbathena-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mod-akbathena-content {
  flex-grow: 1;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.mod-akbathena-main-content {
  flex-grow: 1;
}

.mod-akbathena-link {
  flex-shrink: 0;
  margin-top: 1rem;
}

.mod-akbathena-link a.btn {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
}

.akbathena.layout-image-top,
.akbathena.layout-image-bottom {
  height: 100%;
}

/* Box-sizing universale */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Immagini */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== Layout Overlay (Absolute) ===== */
@media (min-width: 961px) {

.akbathena-overlay-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mod-akbathena-absolute-content {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  transition: all 0.5s ease;
  min-height: auto;
  
}

.mod-akbathena-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.mod-akbathena-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mod-akbathena-textarea {
  position: relative;
  z-index: 1;
}
}